Awful programming techniques
-
There are two unforgivable things the authors of this plugin have done in the source code (well two as far as I know so far).
1. Putting absolute file paths in the database – so if you move your DB from development to production server, you’ll have to fix the options – if you can find them. Paths should be relative to document root or wp-content or such.
2. Storing option info in the DB as base64. so if you search for a bad file path or such, you’ll have trouble finding it. eg. “NextGEN Gallery” is “TmV4dEdFTiBHYWxsZXJ5” if you base64 encode it.
This plugin should carry a warning label – like cigarettes or other hazardous substance.
- The topic ‘Awful programming techniques’ is closed to new replies.