Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.80ms] 75% from 4 tests
A check of server-side resources used by Block Manager
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,498.76ms on /wp-admin/options-general.php?page=block-manager)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.03 ▼2.54 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.54 ▼5.16 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.64 ▼2.76 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 85.61 ▼4.75 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 43.50 ▲7.31 |
Block Manager /wp-admin/options-general.php?page=block-manager | 4.21 | 1,498.76 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Block Manager: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.28 ▼0.08 | 1.92 ▲0.25 | 43.69 ▼1.02 |
Dashboard /wp-admin | 2,200 ▲31 | 5.58 ▼0.05 | 83.67 ▼19.59 | 37.08 ▼3.51 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.04 | 35.10 ▼5.32 | 29.02 ▼8.28 |
Add New Post /wp-admin/post-new.php | 1,695 ▲170 | 21.92 ▼1.12 | 666.66 ▼5.71 | 30.94 ▼21.28 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.21 ▼0.06 | 102.91 ▲1.93 | 41.50 ▼1.06 |
Block Manager /wp-admin/options-general.php?page=block-manager | 3,087 | 10.87 | 290.27 | 147.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-manager/class-admin.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-manager/api/bulk-process.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-manager/api/category-reset.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-manager/api/blocks-toggle.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-manager/api/export.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-manager/api/category-update.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-manager/api/blocks-reset.php:9
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: A description for screenshot #5 is missing in block-manager/assets to your readme.txt
block-manager/block-manager.php Passed 13 tests
Analyzing the main PHP file in "Block Manager" version 2.1.1
38 characters long description:
Take control of your WordPress blocks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,095 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 160 | 368 | 887 |
CSS | 2 | 5 | 0 | 125 |
JavaScript | 3 | 29 | 35 | 80 |
JSON | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 13 | 50.00% |
▷ Public methods | 25 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.85% |
Functions | 19 | |
▷ Named functions | 7 | 36.84% |
▷ Anonymous functions | 12 | 63.16% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/icon.2937822d.png | 2.10KB | 1.14KB | ▼ 45.89% |