Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method RHJ4Diagnostics::activate() should not be called statically
Server metrics [RAM: ▼1.48MB] [CPU: ▼54.14ms] Passed 4 tests
Server-side resources used by RHJ4 Diagnostics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.94 | 11.09 ▼29.60 |
Dashboard /wp-admin | 2.54 ▼0.81 | 11.61 ▼57.80 |
Posts /wp-admin/edit.php | 2.54 ▼0.82 | 13.12 ▼40.65 |
Add New Post /wp-admin/post-new.php | 2.54 ▼3.36 | 13.73 ▼88.52 |
Media Library /wp-admin/upload.php | 2.54 ▼0.70 | 11.07 ▼21.72 |
Server storage [IO: ▲10.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
rhj4_diagnostic_options |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by RHJ4 Diagnostics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲143 | 13.71 ▼0.89 | 9.46 ▲7.82 | 44.49 ▼0.85 |
Dashboard /wp-admin | 2,207 ▲30 | 5.75 ▲0.21 | 90.10 ▼4.31 | 38.52 ▼4.79 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.19 ▲0.20 | 34.44 ▼1.86 | 33.15 ▼5.65 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 18.32 ▼4.77 | 642.41 ▲13.21 | 45.34 ▼5.77 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.28 ▲0.01 | 101.97 ▲1.69 | 42.72 ▼2.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method RHJ4Diagnostics::init() should not be called statically
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- rhj4_diagnostic_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rhj4-diagnostics/demo.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rhj4-diagnostics/rhj4_diagnostics.php:1440
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in rhj4-diagnostics/assets to your readme.txt
rhj4-diagnostics/rhj4_diagnostics.php 92% from 13 tests
The main file in "RHJ4 Diagnostics" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("rhj4-diagnostics.php" instead of "rhj4_diagnostics.php")
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
There were no executable files found in this plugin2,555 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 234 | 661 | 1,205 |
PHP | 3 | 222 | 462 | 989 |
HTML | 1 | 143 | 38 | 318 |
CSS | 1 | 10 | 9 | 43 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 5.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.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 | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 31 | 93.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.06% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.61MB with 0.42MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 322.62KB | 90.21KB | ▼ 72.04% |
assets/screenshot-3.png | 76.71KB | 24.23KB | ▼ 68.41% |
assets/screenshot-5.png | 204.45KB | 59.12KB | ▼ 71.08% |
assets/screenshot-4.png | 23.51KB | 8.94KB | ▼ 61.96% |