Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.76ms] 75% from 4 tests
Server-side resources used by Developer
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 3,155.00ms on /wp-admin/tools.php?page=a8c_developer)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.79 ▲6.39 |
Dashboard /wp-admin | 3.47 ▲0.17 | 49.29 ▲0.66 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 51.73 ▲6.77 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 84.41 ▼7.56 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 33.99 ▼2.52 |
Developer /wp-admin/tools.php?page=a8c_developer | 3.82 | 3,155.00 |
Server storage [IO: ▲0.74MB] [DB: ▲0.09MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Developer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲140 | 14.74 ▲0.38 | 1.89 ▲0.18 | 45.37 ▲3.27 |
Dashboard /wp-admin | 2,302 ▲122 | 5.76 ▲0.13 | 91.04 ▲3.06 | 41.65 ▼0.06 |
Posts /wp-admin/edit.php | 2,216 ▲113 | 2.22 ▲0.21 | 38.14 ▲2.11 | 36.06 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,628 ▲100 | 23.21 ▲0.11 | 689.60 ▲31.13 | 54.14 ▼1.66 |
Media Library /wp-admin/upload.php | 1,513 ▲113 | 4.34 ▲0.08 | 109.96 ▼0.44 | 45.57 ▼3.21 |
Developer /wp-admin/tools.php?page=a8c_developer | 1,142 | 1.95 | 30.98 | 52.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=a8c_developer
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/tools.php?page=a8c_developer
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-upgrader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/developer/includes/class-empty-upgrader-skin.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/developer/includes/class-wp-cli-commands.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/developer/includes/class-empty-upgrader-skin.php on line 3
- > PHP Warning
include_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/developer/includes/class-empty-upgrader-skin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer/developer.php:36
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/developer/includes/class-empty-upgrader-skin.php:5
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/tools.php?page=a8c_developer
- > Javascript (severe) in unknown
/wp-content/plugins/developer/colorbox/jquery.colorbox-min.js?ver=1.3.19 3:3210 Uncaught TypeError: a(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (On activation, the plugin prompts you to specify what type of developer you are. This is used to configure the plugins checks.), #2 (On activation, the plugin does a quick check to see if you have essential developer plugins installed.), #3 (With one click you can install and activate the plugin.), #4 (The plugin's settings page (Tools > Developer) will check to make sure your environment is correctly configured, including plugins, constants, and other settings.)
developer/developer.php 92% from 13 tests
The main PHP script in "Developer" version 1.2.6 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,080 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 207 | 95 | 632 |
PO File | 1 | 78 | 80 | 225 |
JavaScript | 2 | 36 | 6 | 176 |
CSS | 2 | 5 | 9 | 47 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 35.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 46 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.63MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 157.22KB | 47.90KB | ▼ 69.53% |
screenshot-4.png | 177.58KB | 52.87KB | ▼ 70.23% |
colorbox/images/controls.png | 1.59KB | 1.67KB | 0.00% |
screenshot-1.png | 153.24KB | 48.10KB | ▼ 68.61% |
screenshot-3.png | 157.51KB | 48.07KB | ▼ 69.48% |