Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼146.34ms] Passed 4 tests
Analyzing server-side resources used by Details King Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 46.34 ▲6.95 |
Dashboard /wp-admin | 3.09 ▲0.03 | 44.45 ▼5.53 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 41.71 ▼5.03 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 93.03 ▼569.81 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.99 ▼5.00 |
King Pro Plugins /wp-admin/admin.php?page=kpp_menu | 3.02 | 33.33 |
Details King Pro /wp-admin/admin.php?page=detailskingpro | 3.10 | 35.54 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 3 new options
New WordPress options |
---|
dkp_db_version |
dkp_option_settings |
dkp_output_fields |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Details King Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.85 ▲0.36 | 9.78 ▲0.85 | 51.33 ▲0.52 |
Dashboard /wp-admin | 3,007 ▲76 | 5.87 ▼0.11 | 145.20 ▼3.19 | 113.73 ▼12.73 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.70 ▲0.02 | 70.43 ▼1.97 | 93.85 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,694 ▲11 | 19.13 ▲1.02 | 392.61 ▲1.52 | 109.97 ▼6.73 |
Media Library /wp-admin/upload.php | 1,841 ▲34 | 5.00 ▼0.03 | 151.36 ▼7.26 | 136.26 ▲8.22 |
King Pro Plugins /wp-admin/admin.php?page=kpp_menu | 1,256 | 2.09 | 54.33 | 69.38 |
Details King Pro /wp-admin/admin.php?page=detailskingpro | 1,660 | 3.77 | 92.61 | 101.36 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 3 options
- dkp_option_settings
- dkp_output_fields
- dkp_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=detailskingpro
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=detailskingpro
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=detailskingpro
- > Warning in wp-content/plugins/details-king-pro/includes/screens/settings.php+133
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/details-king-pro/includes/screens/kpp.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/details-king-pro/includes/output.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/details-king-pro/includes/screens/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/details-king-pro/includes/admin_area.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/details-king-pro/details-king-pro.php:41
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: date, site details, settings, file upload, global values...
details-king-pro/details-king-pro.php 92% from 13 tests
Analyzing the main PHP file in "Details King Pro" version 1.0
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected1,796 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 76 | 46 | 976 |
SVG | 1 | 0 | 0 | 399 |
PHP | 5 | 63 | 28 | 351 |
JavaScript | 1 | 7 | 2 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cross.png | 0.67KB | 0.64KB | ▼ 4.93% |
images/kpp-icon_16x16_sat.png | 1.71KB | 0.72KB | ▼ 57.78% |
images/kpp-icon_32x32.png | 2.99KB | 1.51KB | ▼ 49.48% |
images/kpp-icon_16x16.png | 1.69KB | 0.72KB | ▼ 57.53% |
images/kpp-icon_32x32_sat.png | 3.09KB | 1.53KB | ▼ 50.38% |