Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.96MB] [CPU: ▲4.18ms] Passed 4 tests
Analyzing server-side resources used by Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.87 | 47.67 ▲6.89 |
Dashboard /wp-admin | 4.35 ▲1.01 | 62.08 ▲0.74 |
Posts /wp-admin/edit.php | 4.41 ▲1.05 | 54.44 ▲3.51 |
Add New Post /wp-admin/post-new.php | 6.87 ▲0.99 | 98.16 ▲5.59 |
Media Library /wp-admin/upload.php | 4.22 ▲0.99 | 50.03 ▲8.66 |
Mercurial /wp-admin/options-general.php?page=mercurial | 4.19 | 41.60 |
Add New Block /wp-admin/admin.php?page=block-new | 4.19 | 38.70 |
All Blocks /wp-admin/admin.php?page=block | 4.25 | 42.34 |
Recommended /wp-admin/plugins.php?page=mercurial-install-plugins | 4.39 | 42.98 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 152 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
wpcmsb |
mercurial_options |
Browser metrics Passed 4 tests
Blocks: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,751 ▲4 | 14.17 ▼0.11 | 1.67 ▲0.03 | 45.37 ▲2.02 |
Dashboard /wp-admin | 2,215 ▲38 | 5.57 ▼0.07 | 88.09 ▼13.44 | 43.98 ▼1.88 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.14 ▲0.13 | 41.85 ▲2.29 | 40.96 ▲3.96 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.44 ▲0.24 | 704.43 ▲87.64 | 57.82 ▼0.71 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.25 ▲0.09 | 111.44 ▲10.74 | 52.82 ▲8.96 |
Mercurial /wp-admin/options-general.php?page=mercurial | 853 | 2.03 | 26.51 | 30.29 |
Add New Block /wp-admin/admin.php?page=block-new | 852 | 2.07 | 29.21 | 33.14 |
All Blocks /wp-admin/admin.php?page=block | 1,212 | 2.21 | 28.81 | 38.94 |
Recommended /wp-admin/plugins.php?page=mercurial-install-plugins | 1,171 | 2.05 | 23.25 | 30.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- mercurial_options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/blocks/admin/edit-cms-block.php
- 72× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Less_Exception_Parser' not found in wp-content/plugins/blocks/includes/wp-less/vendor/less.php/lib/Less/Exception/Compiler.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Output' not found in wp-content/plugins/blocks/includes/wp-less/vendor/less.php/lib/Less/Output/Mapped.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blocks/includes/capabilities.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/blocks/includes/shortcodes-mercurial.php:10
- > PHP Warning
require_once(wpcmsb_PLUGIN_DIR/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/blocks/settings.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/blocks/includes/wp-less/vendor/less.php/lib/Less/Tree/Condition.php:9
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/blocks/includes/wp-less/vendor/less.php/lib/Less/Exception/Chunk.php on line 99
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/blocks/includes/wp-less/vendor/less.php/lib/Less/Tree/NameValue.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks/includes/controller.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/blocks/admin/includes/class-cms-blocks-list-table.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (blocks-screenshot-1.png), #2 (blocks-screenshot-2.png)
blocks/blocks.php 92% from 13 tests
"Blocks" version 1.6.42's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected15,232 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 4,152 | 4,218 | 12,345 |
CSS | 6 | 75 | 90 | 1,584 |
Markdown | 3 | 150 | 0 | 361 |
SVG | 19 | 0 | 9 | 333 |
JavaScript | 1 | 89 | 0 | 325 |
LESS | 4 | 69 | 22 | 247 |
JSON | 1 | 0 | 0 | 37 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 27.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 395.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 2 | 2.56% |
▷ Concrete classes | 76 | 97.44% |
▷ Final classes | 0 | 0.00% |
Methods | 777 | |
▷ Static methods | 65 | 8.37% |
▷ Public methods | 627 | 80.69% |
▷ Protected methods | 43 | 5.53% |
▷ Private methods | 107 | 13.77% |
Functions | 138 | |
▷ Named functions | 138 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 15 | 65.22% |
▷ Class constants | 8 | 34.78% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/js/jquery-ui/themes/smoothness/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
includes/js/jquery-ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
includes/js/jquery-ui/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
includes/js/jquery-ui/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
admin/images/gsuite.png | 173.57KB | 59.70KB | ▼ 65.60% |