Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/developer-toolbar/classes/debugger.class.php+119
Function create_function() is deprecated
Server metrics [RAM: ▼1.80MB] [CPU: ▼189.66ms] Passed 4 tests
Server-side resources used by Developer Toolbar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼0.89 | 9.91 ▼10.69 |
Dashboard /wp-admin | 1.85 ▼1.21 | 6.60 ▼46.18 |
Posts /wp-admin/edit.php | 1.85 ▼1.27 | 5.83 ▼46.15 |
Add New Post /wp-admin/post-new.php | 1.85 ▼3.58 | 5.72 ▼637.96 |
Media Library /wp-admin/upload.php | 1.85 ▼1.15 | 5.26 ▼28.36 |
phpInfo /wp-admin/admin.php?page=dev-toolbar-phpinfo | 1.85 | 5.52 |
Server Info /wp-admin/admin.php?page=dev-toolbar-serverinfo | 1.85 | 5.61 |
Developer /wp-admin/admin.php?page=developer-toolbar/developer-toolbar.php | 1.85 | 6.04 |
Rewrite Rules /wp-admin/admin.php?page=dev-toolbar-rewrites | 1.85 | 5.50 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: 1 new table, no new options
New tables |
---|
wp_lgx_developer_toolbar |
Browser metrics Passed 4 tests
A check of browser resources used by Developer Toolbar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,414 ▲777 | 16.40 ▲0.72 | 14.16 ▲5.16 | 53.84 ▲4.75 |
Dashboard /wp-admin | 3,012 ▲78 | 5.93 ▼0.04 | 133.31 ▼7.91 | 133.83 ▲20.71 |
Posts /wp-admin/edit.php | 2,804 ▲65 | 2.74 ▲0.02 | 71.43 ▲6.77 | 86.50 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,711 ▼159 | 18.80 ▼0.67 | 365.56 ▼22.72 | 111.83 ▼0.42 |
Media Library /wp-admin/upload.php | 1,801 ▼3 | 5.05 ▲0.04 | 131.48 ▼25.05 | 136.19 ▲4.75 |
phpInfo /wp-admin/admin.php?page=dev-toolbar-phpinfo | 9,135 | 2.48 | 61.16 | 136.40 |
Server Info /wp-admin/admin.php?page=dev-toolbar-serverinfo | 1,347 | 2.08 | 51.57 | 72.03 |
Developer /wp-admin/admin.php?page=developer-toolbar/developer-toolbar.php | 1,855 | 2.19 | 57.03 | 75.48 |
Rewrite Rules /wp-admin/admin.php?page=dev-toolbar-rewrites | 1,093 | 2.11 | 55.67 | 92.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/developer-toolbar/classes/debugger.class.php+119
Function create_function() is deprecated
Smoke tests 25% 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
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dev-toolbar-rewrites
- > Deprecated in wp-content/plugins/developer-toolbar/classes/debugger.class.php+128
Function create_function() is deprecated
SRP 0% 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
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/developer-toolbar/views/phpinfo.php
- > /wp-content/plugins/developer-toolbar/views/serverinfo.php
- > /wp-content/plugins/developer-toolbar/views/rewrites.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: public_query_vars in wp-content/plugins/developer-toolbar/views/rewrites.php on line 24
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/developer-toolbar/views/checklists.php:1
- > PHP Notice
Undefined variable: rewrite_rules_array in wp-content/plugins/developer-toolbar/views/rewrites.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/developer-toolbar/developer-toolbar.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/developer-toolbar/views/toolbar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-toolbar/classes/debugger.class.php:119
- > PHP Notice
Undefined variable: rewrite_rules in wp-content/plugins/developer-toolbar/views/rewrites.php on line 9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Showing the frontend developer toolbar.), #2 (Shows the backend general information and checklists.)
developer-toolbar/developer-toolbar.php 92% from 13 tests
The primary PHP file in "Developer Toolbar" version 1.0.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 231 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,018 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 163 | 311 | 868 |
JavaScript | 2 | 4 | 17 | 61 |
CSS | 1 | 0 | 1 | 60 |
XML | 5 | 0 | 0 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 30 | 76.92% |
▷ Protected methods | 8 | 20.51% |
▷ Private methods | 1 | 2.56% |
Functions | 7 | |
▷ Named functions | 7 | 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
11 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close.png | 0.26KB | 0.22KB | ▼ 13.21% |
img/wordpress.png | 1.01KB | 0.61KB | ▼ 39.56% |
img/screen.png | 0.16KB | 0.12KB | ▼ 23.60% |
img/info_white.png | 49.89KB | 0.49KB | ▼ 99.01% |
img/file.png | 0.24KB | 0.17KB | ▼ 27.94% |