Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.21ms] Passed 4 tests
A check of server-side resources used by Flexible Spacer Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 38.89 ▼0.41 |
Dashboard /wp-admin | 3.45 ▲0.10 | 44.89 ▼14.47 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.48 ▲7.55 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 84.00 ▼9.67 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 35.48 ▲3.72 |
Flexible Spacer Block /wp-admin/options-general.php?page=flexible-spacer-block-option | 3.34 | 32.21 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Flexible Spacer Block
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.31 ▼0.04 | 1.70 ▼0.02 | 40.09 ▼0.74 |
Dashboard /wp-admin | 2,193 ▲22 | 5.55 ▲0.04 | 92.31 ▲6.81 | 38.68 ▼4.73 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.09 ▲0.14 | 39.41 ▲3.29 | 35.98 ▲3.23 |
Add New Post /wp-admin/post-new.php | 1,705 ▲179 | 22.09 ▼1.64 | 648.07 ▲3.80 | 50.11 ▼11.78 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.28 ▲0.10 | 93.90 ▼0.90 | 42.03 ▲0.60 |
Flexible Spacer Block /wp-admin/options-general.php?page=flexible-spacer-block-option | 1,090 | 2.14 | 22.08 | 33.81 |
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
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Flexible_Spacer_Block\\is_admin() in wp-content/plugins/flexible-spacer-block/classes/class-options.php:360
- > PHP Fatal error
Uncaught Error: Call to undefined function Flexible_Spacer_Block\\add_action() in wp-content/plugins/flexible-spacer-block/classes/class-enqueue.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: gutenberg, block, spacer, responsive
flexible-spacer-block/flexible-spacer-block.php Passed 13 tests
The main PHP script in "Flexible Spacer Block" version 2.2.0 is automatically included on every request by WordPress
72 characters long description:
Add white space between blocks and customize its height for each device.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,256 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 50 | 45 | 521 |
PHP | 5 | 79 | 146 | 476 |
Sass | 2 | 33 | 5 | 174 |
JSON | 2 | 0 | 0 | 83 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 18.18% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 4 | 33.33% |
▷ Class constants | 8 | 66.67% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin