10% developer-options-plugin

Code Review | Developer Options

WordPress plugin Developer Options scored 10% from 54 tests.

About plugin

  • Plugin page: developer-options...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.3
  • WordPress version: 5.8.1
  • First release: Dec 17, 2011
  • Latest release: Feb 27, 2012
  • Number of updates: 10
  • Update frequency: every 7.2 days
  • Top authors: ChrisHurst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,777 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-loader.php+14
    Undefined index: action

Server metrics [RAM: ▼1.87MB] [CPU: ▼191.35ms] Passed 4 tests

Analyzing server-side resources used by Developer Options
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.76 ▼0.969.97 ▼13.79
Dashboard /wp-admin1.78 ▼1.284.60 ▼45.71
Posts /wp-admin/edit.php1.78 ▼1.334.99 ▼30.92
Add New Post /wp-admin/post-new.php1.78 ▼3.654.16 ▼658.68
Media Library /wp-admin/upload.php1.78 ▼1.236.79 ▼30.09
Developer Options /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php1.785.65

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Developer Options
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,822 ▲22616.46 ▲0.6512.67 ▲5.7050.69 ▲2.54
Dashboard /wp-admin2,969 ▲325.96 ▼0.24145.42 ▼10.03116.70 ▼9.73
Posts /wp-admin/edit.php2,741 ▲22.70 ▲0.0062.95 ▼0.67104.57 ▲9.19
Add New Post /wp-admin/post-new.php1,499 ▼18418.92 ▲0.15379.33 ▼1.86125.72 ▲3.26
Media Library /wp-admin/upload.php1,809 ▲25.05 ▲0.06155.99 ▲5.03126.61 ▲3.06
Developer Options /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php1,8582.3659.4290.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-loader.php+14
    Undefined index: action

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-loader.php+14
    Undefined index: action
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-tabs handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > User deprecated in wp-includes/functions.php+5211
    get_alloptions is deprecated since version 3.0.0! Use wp_load_alloptions() instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 13 bytes
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 8 bytes
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 27 bytes
  • 38 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 1 bytes
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 20 bytes
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 2 bytes
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 16 bytes
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 17 bytes
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 3 bytes
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 4 bytes
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 6 bytes
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 5 bytes
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 12 bytes
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 46 bytes
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 26 bytes
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 15 bytes
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 9 bytes
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 10 bytes
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 7 bytes
    • > GET request to /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php
    • > Notice in wp-content/plugins/developer-options-plugin/plugin-admin.php+168
    unserialize(): Error at offset 0 of 40 bytes

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/developer-options-plugin/plugin-loader.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Developer_Options' not found in wp-content/plugins/developer-options-plugin/plugin-admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Plugin Name: Please specify the plugin name on the first line ( === developer-options-plugin === )
  • Screenshots: Screenshot #1 (Plugin Screenshot) image missing
You can look at the official readme.txt

developer-options-plugin/plugin-loader.php 92% from 13 tests

The entry point to "Developer Options" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("developer-options-plugin.php" instead of "plugin-loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected139 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP38288139

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity10.00
▷ Minimum class complexity8.00
▷ Maximum class complexity12.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods770.00%
▷ Protected methods110.00%
▷ Private methods220.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin