Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.03MB] [CPU: ▲23.62ms] 75% from 4 tests
This is a short check of server-side resources used by Spice Blocks
Please fix the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.03MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.43 | 63.71 ▲21.16 |
Dashboard /wp-admin | 8.91 ▲5.56 | 78.03 ▲16.13 |
Posts /wp-admin/edit.php | 8.92 ▲5.55 | 78.36 ▲30.05 |
Add New Post /wp-admin/post-new.php | 9.47 ▲3.58 | 122.05 ▲27.13 |
Media Library /wp-admin/upload.php | 8.92 ▲5.68 | 67.73 ▲31.87 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.92 | 62.54 |
Server storage [IO: ▲9.13MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- There were 1 file (0.16KB) illegally modified outside of "wp-content/plugins/spice-blocks/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/spice-blocks-full-width-template.php
Filesystem: 244 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
can_compress_scripts |
widget_theysaidso_widget |
fs_debug_mode |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for Spice Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,172 ▲425 | 13.77 ▼0.37 | 23.71 ▲21.95 | 35.62 ▼8.35 |
Dashboard /wp-admin | 2,389 ▲215 | 5.53 ▼0.13 | 85.35 ▼4.36 | 42.77 ▲5.58 |
Posts /wp-admin/edit.php | 2,268 ▲165 | 2.13 ▲0.12 | 39.60 ▼2.07 | 38.78 ▲2.80 |
Add New Post /wp-admin/post-new.php | 2,287 ▲760 | 16.63 ▼6.56 | 652.05 ▼13.69 | 201.35 ▲142.47 |
Media Library /wp-admin/upload.php | 1,707 ▲307 | 4.16 ▼0.08 | 99.19 ▲1.87 | 44.58 ▲1.05 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,225 | 1.65 | 28.46 | 31.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/spice-blocks/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- fs_active_plugins
- db_upgraded
- theysaidso_admin_options
- fs_accounts
- widget_recent-comments
- widget_recent-posts
- fs_debug_mode
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/spice-blocks/admin/view.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/spice-blocks/inc/template/spice-blocks-full-width-template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spice-blocks/inc/block-import.php:5
- > 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 uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Contributors: Plugin contributors field is missing
spice-blocks/spice-blocks.php 92% from 13 tests
The main PHP file in "Spice Blocks" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)
Code Analysis 97% from 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
No dangerous file extensions were detected119,375 lines of code in 166 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 36,734 |
JavaScript | 15 | 3,498 | 3,370 | 36,053 |
PHP | 122 | 8,075 | 17,245 | 33,869 |
CSS | 22 | 1,612 | 147 | 12,472 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 3 | 24 | 0 | 33 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 91.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 1 | 2.13% |
Methods | 1,268 | |
▷ Static methods | 198 | 15.62% |
▷ Public methods | 878 | 69.24% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 373 | 29.42% |
Functions | 111 | |
▷ Named functions | 109 | 98.20% |
▷ Anonymous functions | 2 | 1.80% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 compressed PNG files occupy 0.52MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/bg-pattern.png | 7.46KB | 6.88KB | ▼ 7.78% |
admin/assets/images/demo-section-image/clients.png | 8.75KB | 9.28KB | 0.00% |
admin/assets/images/demo-section-image/hero.png | 26.17KB | 26.96KB | 0.00% |
admin/assets/images/block-card.png | 26.25KB | 27.52KB | 0.00% |
admin/assets/images/demo-section-image/cta.png | 21.61KB | 22.46KB | 0.00% |