10% img-simple-site-options

Code Review | IMG Simple Site Options

WordPress plugin IMG Simple Site Options scored10%from 54 tests.

About plugin

  • Plugin page: img-simple-site-o...
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2014
  • Latest release: Apr 29, 2014
  • Number of updates: 14
  • Update frequency: every 6.0 days
  • Top authors: imgiseverything (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /780 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/img-simple-site-options/img-simple-site-options.php+278
    Undefined variable: wpdb

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.66ms] Passed 4 tests

An overview of server-side resources used by IMG Simple Site Options
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.43 ▲1.83
Dashboard /wp-admin3.34 ▼0.0047.07 ▼12.84
Posts /wp-admin/edit.php3.39 ▲0.0350.72 ▲3.55
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.38 ▼22.42
Media Library /wp-admin/upload.php3.26 ▲0.0334.54 ▲2.81
Simple Site Options /wp-admin/admin.php?page=imgsimplesiteoptions3.2330.93

Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

IMG Simple Site Options: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.24 ▼1.364.70 ▲3.0344.23 ▲3.71
Dashboard /wp-admin2,240 ▲485.88 ▲0.97100.16 ▼8.5141.14 ▲2.27
Posts /wp-admin/edit.php2,120 ▲311.99 ▼0.0535.69 ▲1.3834.74 ▲0.13
Add New Post /wp-admin/post-new.php1,558 ▲4423.36 ▲5.79692.75 ▲10.2755.56 ▲9.48
Media Library /wp-admin/upload.php1,419 ▲314.20 ▼0.0395.06 ▼4.8442.45 ▲0.20
Social Media /wp-admin/admin.php?page=imgsso_social_media9192.0624.2128.76
Contact Details /wp-admin/admin.php?page=imgsso_company_address9292.0622.3128.60
Simple Site Options /wp-admin/admin.php?page=imgsimplesiteoptions9972.0223.1327.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/img-simple-site-options/img-simple-site-options.php on line 278
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/img-simple-site-options/img-simple-site-options.php:79

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Edit Social Media usernames form), #2 (Edit Contact Details values form), #3 (Using a shortcode to show titter username and your post code via the Visual Editor)
You can look at the official readme.txt

img-simple-site-options/img-simple-site-options.php Passed 13 tests

The main file in "IMG Simple Site Options" v. 1.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
Functionality to allow the management of social media usernames and contact details

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin167 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png57.98KB34.07KB▼ 41.23%
screenshot-2.png48.28KB27.83KB▼ 42.36%
screenshot-3.png51.91KB30.08KB▼ 42.06%