Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.47ms] Passed 4 tests
Analyzing server-side resources used by Industrial and Factorial Addons for KingComposer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.06 ▼4.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.05 ▼2.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.84 ▲0.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.76 ▼6.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.87 ▲3.74 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Industrial and Factorial Addons for KingComposer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.21 ▼1.54 | 1.78 ▼0.12 | 44.84 ▲2.66 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼0.24 | 112.37 ▲1.48 | 42.91 ▼0.36 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.05 | 42.22 ▼1.24 | 35.92 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.42 ▲5.06 | 658.03 ▲51.71 | 50.54 ▲2.57 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▲0.02 | 100.23 ▼0.18 | 44.28 ▲0.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 items
- 32× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/about-style-three.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/service-carousel-two.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/services.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/hover-effects/hover-effects.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/testimonials-style-three.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/portfolio.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/service-style-four.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/testimonials-style-two.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/features-style-two.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/service-box/service-box.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
industrial-and-factorial-addons-for-kingcomposer/industrial-addons.php 92% from 13 tests
"Industrial and Factorial Addons for KingComposer" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("industrial-and-factorial-addons-for-kingcomposer.php" instead of "industrial-addons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected21,463 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 25 | 736 | 169 | 13,340 |
PHP | 34 | 1,523 | 53 | 6,550 |
JavaScript | 15 | 209 | 209 | 962 |
SVG | 2 | 0 | 0 | 611 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
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 | 67 | |
▷ Named functions | 67 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
assets/admin/img/beforeafter_icon.png | 1.36KB | 0.53KB | ▼ 61.42% |
assets/admin/img/pronobox_icon.png | 0.42KB | 0.30KB | ▼ 28.37% |
assets/admin/img/flipbox_icon.png | 1.67KB | 1.01KB | ▼ 39.52% |
assets/admin/img/servicebox_icon.png | 0.61KB | 0.46KB | ▼ 24.20% |
assets/admin/img/hover_effects_icon.png | 2.06KB | 1.21KB | ▼ 41.43% |