Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.37ms] Passed 4 tests
An overview of server-side resources used by Calculator Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 40.48 ▲3.80 |
Dashboard /wp-admin | 3.36 ▲0.06 | 43.30 ▼9.71 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 42.17 ▼2.83 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 81.96 ▼12.92 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 32.73 ▼0.03 |
Excelkits /wp-admin/options-general.php?page=excelkits | 3.29 | 37.01 |
Server storage [IO: ▲1.00MB] [DB: ▲0.11MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Calculator Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 14.34 ▼0.04 | 1.97 ▲0.39 | 41.84 ▲1.30 |
Dashboard /wp-admin | 2,199 ▲18 | 5.55 ▼0.11 | 84.65 ▼25.89 | 38.30 ▼11.17 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.06 | 33.56 ▼2.41 | 32.83 ▲0.36 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,839 | 27.83 ▲4.68 | 889.46 ▲219.35 | 57.00 ▲1.70 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.17 ▼0.01 | 97.43 ▲1.84 | 43.47 ▼0.71 |
Excelkits /wp-admin/options-general.php?page=excelkits | 861 | 2.00 | 23.85 | 33.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (Example calculator)
calculator-blocks/excelkits-blocks.php 77% from 13 tests
"Calculator Blocks" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("calculator-blocks.php" instead of "excelkits-blocks.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,269 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 73 | 162 | 449 |
JSX | 4 | 24 | 38 | 282 |
PHP | 4 | 41 | 111 | 265 |
CSS | 2 | 20 | 0 | 128 |
Sass | 2 | 16 | 5 | 80 |
JSON | 2 | 1 | 0 | 62 |
SVG | 1 | 0 | 0 | 3 |
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.39 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 42.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 57.14% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.94MB with 0.31MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 166.58KB | 168.64KB | 0.00% |
screenshot-3.png | 498.59KB | 208.03KB | ▼ 58.28% |
screenshot-2.png | 296.32KB | 177.23KB | ▼ 40.19% |