Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.38ms] Passed 4 tests
This is a short check of server-side resources used by Related King Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.80 ▼2.22 |
Dashboard /wp-admin | 3.38 ▲0.07 | 43.28 ▼1.11 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.61 ▼2.14 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.37 ▼4.03 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.36 ▲3.79 |
King Pro Plugins /wp-admin/admin.php?page=kpp_menu | 3.28 | 32.09 |
Related King Pro /wp-admin/admin.php?page=relatedkingpro | 3.27 | 30.26 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_relatedkingpro_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
relpk_db_version |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Related King Pro
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲75 | 13.21 ▼1.19 | 1.74 ▼0.92 | 43.18 ▼6.53 |
Dashboard /wp-admin | 2,233 ▲45 | 5.85 ▼0.01 | 109.03 ▲7.39 | 37.42 ▼8.35 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.00 ▲0.01 | 40.24 ▼4.95 | 36.28 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,558 ▲44 | 23.24 ▲5.82 | 645.79 ▼5.94 | 59.11 ▲4.80 |
Media Library /wp-admin/upload.php | 1,421 ▲39 | 4.19 ▼0.02 | 99.33 ▲0.94 | 42.13 ▼3.63 |
King Pro Plugins /wp-admin/admin.php?page=kpp_menu | 949 | 2.04 | 26.31 | 35.43 |
Related King Pro /wp-admin/admin.php?page=relatedkingpro | 919 | 2.08 | 23.78 | 39.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_relatedkingpro_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- relpk_db_version
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=relatedkingpro
- > 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/admin.php?page=relatedkingpro
- > 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/related-king-pro/includes/admin_area.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/related-king-pro/includes/output.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/related-king-pro/includes/screens/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/related-king-pro/includes/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/related-king-pro/includes/functions.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/related-king-pro/includes/screens/kpp.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/related-king-pro/relatedkingpro.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
related-king-pro/relatedkingpro.php 92% from 13 tests
The entry point to "Related King Pro" version 1.0.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("related-king-pro.php" instead of "relatedkingpro.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,398 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 28 | 2 | 574 |
PHP | 7 | 76 | 38 | 425 |
SVG | 1 | 0 | 0 | 399 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/kpp-icon_16x16.png | 1.69KB | 0.72KB | ▼ 57.53% |
images/kpp-icon_32x32.png | 2.99KB | 1.51KB | ▼ 49.48% |
images/relkp-icon_32x32.png | 1.92KB | 1.52KB | ▼ 20.85% |
images/relkp-icon_16x16.png | 1.39KB | 0.68KB | ▼ 51.37% |
images/kpp-icon_32x32_sat.png | 3.09KB | 1.53KB | ▼ 50.38% |