Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.74ms] Passed 4 tests
This is a short check of server-side resources used by Developer Mode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.38 ▼8.84 |
Dashboard /wp-admin | 3.47 ▲0.13 | 50.59 ▼11.98 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 51.30 ▲2.31 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 93.16 ▼0.45 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.93 ▲6.71 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
jwdm_version |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Developer Mode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.64 ▼0.99 | 1.64 ▼0.81 | 45.02 ▲2.98 |
Dashboard /wp-admin | 2,219 ▲31 | 5.85 ▼0.00 | 102.88 ▼14.29 | 40.85 ▼5.19 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▼0.11 | 38.65 ▲0.32 | 34.39 ▼6.22 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.01 ▼0.15 | 606.80 ▼74.17 | 50.01 ▼8.73 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.28 ▲0.09 | 97.76 ▼4.71 | 43.33 ▼1.76 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- jwdm_version
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-mode/lib/functions.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-mode/lib/adminmenupage/promoteself.php:14
- > PHP Fatal error
require_once(): Failed opening required 'JWDM_LIBRARY_PATH/adminmenupage/options.php' (include_path='.:/usr/share/php') in wp-content/plugins/developer-mode/lib/adminmenu.php on line 2
- > PHP Warning
Use of undefined constant JWDM_LIBRARY_PATH - assumed 'JWDM_LIBRARY_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/developer-mode/lib/roles.php on line 29
- > PHP Warning
Use of undefined constant JWDM_LIBRARY_PATH - assumed 'JWDM_LIBRARY_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/developer-mode/lib/adminmenu.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-mode/lib/adminmenupage/plugins.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-mode/lib/adminmenupage/adminmenu.php:19
- > PHP Warning
require_once(JWDM_LIBRARY_PATH/helper/roles.php): failed to open stream: No such file or directory in wp-content/plugins/developer-mode/lib/roles.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/developer-mode/developer-mode.php:17
- > PHP Fatal error
require_once(): Failed opening required 'JWDM_LIBRARY_PATH/helper/roles.php' (include_path='.:/usr/share/php') in wp-content/plugins/developer-mode/lib/roles.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: hide plugins, admin, disable update, client, disable updates...
developer-mode/developer-mode.php 92% from 13 tests
Analyzing the main PHP file in "Developer Mode" version 0.4.1.3
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 382 characters long)
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
Everything looks great! No dangerous files found in this plugin794 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 212 | 341 | 694 |
PO File | 1 | 215 | 575 | 69 |
JavaScript | 1 | 11 | 7 | 25 |
CSS | 1 | 1 | 1 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 5 | 11.11% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG files were detected