Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼13.51ms] Passed 4 tests
A check of server-side resources used by Spice Box
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.51 ▼3.12 |
Dashboard /wp-admin | 3.40 ▲0.05 | 48.14 ▼19.75 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.08 ▼7.62 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.64 ▼23.55 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.51 ▲0.96 |
Server storage [IO: ▲14.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 557 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Spice Box
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.72 ▲0.37 | 1.48 ▼0.24 | 40.09 ▼1.41 |
Dashboard /wp-admin | 2,195 ▲14 | 5.63 ▼0.08 | 87.08 ▼19.25 | 38.75 ▼3.52 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.01 | 40.71 ▼0.22 | 37.35 ▲0.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▼0.64 | 665.96 ▼14.02 | 49.98 ▼6.37 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.15 ▼0.07 | 98.30 ▼4.46 | 44.69 ▲1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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)
Even though everything seems fine, this is not an exhaustive test
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
- 211× 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/spicebox/inc/spiko/sections/spiko-slider-section.php:5
- > PHP Warning
Use of undefined constant SPICEB_PLUGIN_URL - assumed 'SPICEB_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/spicebox/inc/honeypress/default-pages/upload-media.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spicebox/inc/cloudpress/features/feature-testimonial-section.php:164
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/spicebox/inc/innofit/customizer/subscriber-section.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spicebox/inc/wpkites/sections/wpkites-testimonial-section.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spicebox/inc/innofit/sections/innofit-contact-section.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/spicebox/inc/innofit/default-pages/home-page.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/spicebox/inc/busicare/customizer/testimonial-section.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/spicebox/inc/wpblack/default-pages/upload-media.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/spicebox/inc/innofit/customizer/about-section.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Requires at least: Invalid version format
spicebox/spicebox.php Passed 13 tests
"Spice Box" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Enhances SpiceThemes with extra functionality.
Code Analysis 97% from 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 detected66,075 lines of code in 333 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 275 | 10,436 | 18,235 | 53,589 |
CSS | 30 | 377 | 242 | 5,632 |
JavaScript | 26 | 347 | 283 | 3,969 |
SVG | 1 | 0 | 0 | 2,671 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 68.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 2 | 2.90% |
▷ Concrete classes | 67 | 97.10% |
▷ Final classes | 0 | 0.00% |
Methods | 1,307 | |
▷ Static methods | 197 | 15.07% |
▷ Public methods | 897 | 68.63% |
▷ Protected methods | 18 | 1.38% |
▷ Private methods | 392 | 29.99% |
Functions | 438 | |
▷ Named functions | 436 | 99.54% |
▷ Anonymous functions | 2 | 0.46% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
72 PNG files occupy 0.50MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/innofit/images/bg-pattern/bg-img4.png | 1.29KB | 1.30KB | 0.00% |
inc/honeypress/images/honeybee-logo.png | 3.97KB | 2.48KB | ▼ 37.62% |
inc/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
inc/honeypress/images/honeypress-dark.png | 3.32KB | 3.40KB | 0.00% |
inc/controls/customizer-alpha-color-picker/css/transparency-grid.png | 2.58KB | 2.80KB | 0.00% |