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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.76 ▼0.96 | 9.97 ▼13.79 |
Dashboard /wp-admin | 1.78 ▼1.28 | 4.60 ▼45.71 |
Posts /wp-admin/edit.php | 1.78 ▼1.33 | 4.99 ▼30.92 |
Add New Post /wp-admin/post-new.php | 1.78 ▼3.65 | 4.16 ▼658.68 |
Media Library /wp-admin/upload.php | 1.78 ▼1.23 | 6.79 ▼30.09 |
Developer Options /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php | 1.78 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,822 ▲226 | 16.46 ▲0.65 | 12.67 ▲5.70 | 50.69 ▲2.54 |
Dashboard /wp-admin | 2,969 ▲32 | 5.96 ▼0.24 | 145.42 ▼10.03 | 116.70 ▼9.73 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.70 ▲0.00 | 62.95 ▼0.67 | 104.57 ▲9.19 |
Add New Post /wp-admin/post-new.php | 1,499 ▼184 | 18.92 ▲0.15 | 379.33 ▼1.86 | 125.72 ▲3.26 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.05 ▲0.06 | 155.99 ▲5.03 | 126.61 ▲3.06 |
Developer Options /wp-admin/options-general.php?page=developer-options-plugin/plugin-admin.php | 1,858 | 2.36 | 59.42 | 90.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 82 | 88 | 139 |
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 code | 0.46 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 2 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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