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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.15ms] Passed 4 tests
A check of server-side resources used by Block Areas
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.35 ▲1.55 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.21 ▼4.85 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 51.32 ▲0.62 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 87.34 ▼20.14 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.12 ▼0.22 |
Block Areas /wp-admin/edit.php?post_type=block_area | 3.46 | 41.22 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 116 new files
Database: no new tables, 7 new options
New WordPress options |
---|
default_block_areas_version |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Block Areas
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.09 | 1.74 ▼0.32 | 42.85 ▼0.85 |
Dashboard /wp-admin | 2,199 ▲22 | 5.50 ▼0.04 | 88.44 ▼18.58 | 40.90 ▼2.11 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.05 | 36.81 ▼0.99 | 32.84 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.11 ▼0.08 | 659.33 ▲50.55 | 64.32 ▲12.88 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.06 | 103.60 ▲1.45 | 46.82 ▲1.37 |
Block Areas /wp-admin/edit.php?post_type=block_area | 1,693 | 2.01 | 35.05 | 33.78 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- default_block_areas_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 94× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/Installer.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/block-areas/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php: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 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
5 plugin tags: gutenberg, theming, blocks, editor, wprig
block-areas/block-areas.php Passed 13 tests
Analyzing the main PHP file in "Block Areas" version 0.2.0
104 characters long description:
Introduces a simple method for defining block areas to use the block editor outside of the post content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,788 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 461 | 872 | 2,527 |
JSON | 2 | 0 | 0 | 233 |
XML | 1 | 1 | 0 | 28 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 2.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 101 | |
▷ Abstract classes | 1 | 0.99% |
▷ Concrete classes | 100 | 99.01% |
▷ Final classes | 0 | 0.00% |
Methods | 126 | |
▷ Static methods | 5 | 3.97% |
▷ Public methods | 82 | 65.08% |
▷ Protected methods | 31 | 24.60% |
▷ Private methods | 13 | 10.32% |
Functions | 21 | |
▷ Named functions | 7 | 33.33% |
▷ Anonymous functions | 14 | 66.67% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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
No PNG images were found in this plugin