Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼293.72ms] Passed 4 tests
Analyzing server-side resources used by Addons for KingComposer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.40 | 54.85 ▲34.90 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.13 ▼0.09 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 37.01 ▲1.11 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 91.81 ▼1,177.65 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.59 ▲1.76 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Addons for KingComposer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲23 | 15.55 ▼0.40 | 6.00 ▼0.24 | 3.21 ▲0.40 |
Dashboard /wp-admin | 2,881 ▲20 | 6.09 ▼0.06 | 118.32 ▼16.67 | 153.91 ▼5.96 |
Posts /wp-admin/edit.php | 2,691 ▲34 | 3.24 ▲0.01 | 65.67 ▲0.48 | 141.72 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,711 ▲50 | 20.79 ▲4.75 | 430.27 ▲6.00 | 159.43 ▼1.82 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.53 ▲0.02 | 148.65 ▲13.02 | 184.98 ▼10.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-kingcomposer/shortcodes/info-box/info-box.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-kingcomposer/shortcodes/flip-box/flip-box.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-kingcomposer/shortcodes/hover-effects/hover-effects.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-kingcomposer/shortcodes/before-after/before-after.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-kingcomposer/shortcodes/service-box/service-box.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-kingcomposer/shortcodes/flip-box-3d/flip-box-3d.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-kingcomposer/shortcodes/promo-box/promo-box.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 52 tag instead of maximum 10
addons-for-kingcomposer/addons-for-kingcomposer.php Passed 13 tests
The main PHP script in "Addons for KingComposer" version 1.0.0 is automatically included on every request by WordPress
83 characters long description:
Impressive modern yet powerful shortcode collections for KingComposer page builder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin14,121 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 603 | 80 | 9,983 |
PHP | 9 | 667 | 15 | 3,117 |
SVG | 1 | 0 | 0 | 565 |
JavaScript | 4 | 141 | 106 | 456 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.82 |
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 | 17 | |
▷ Named functions | 17 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
6 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 |
admin/img/flipbox_icon.png | 1.67KB | 1.01KB | ▼ 39.52% |
admin/img/infobox_icon.png | 0.61KB | 0.46KB | ▼ 23.96% |
admin/img/hover_effects_icon.png | 2.06KB | 1.21KB | ▼ 41.43% |
admin/img/pronobox_icon.png | 0.42KB | 0.30KB | ▼ 28.37% |
admin/img/beforeafter_icon.png | 1.36KB | 0.53KB | ▼ 61.42% |