Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.24MB] [CPU: ▼44.19ms] Passed 4 tests
This is a short check of server-side resources used by Forty Two Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 13.69 ▼33.84 |
Dashboard /wp-admin | 2.77 ▼0.54 | 16.29 ▼33.21 |
Posts /wp-admin/edit.php | 2.77 ▼0.59 | 16.11 ▼26.81 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.12 | 15.62 ▼82.89 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 15.88 ▼17.16 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Forty Two Blocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲228 | 16.79 ▲2.39 | 10.84 ▲9.05 | 38.70 ▼4.57 |
Dashboard /wp-admin | 2,217 ▲26 | 6.92 ▲2.01 | 116.96 ▲5.73 | 39.31 ▲1.30 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 3.84 ▲1.83 | 47.67 ▲7.69 | 33.78 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,825 | 25.49 ▲7.23 | 890.21 ▲289.35 | 54.36 ▲1.15 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 6.41 ▲2.15 | 114.91 ▲16.60 | 46.53 ▲2.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/forty-two-blocks/forty-two-blocks.php+64
include_once(wp-content/plugins/forty-two-blocks/build/build.php): failed to open stream: No such file or directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'AspenGrove_Blocks\\BlockType' not found in wp-content/plugins/forty-two-blocks/includes/framework/PostsBlockType.php:4
- > PHP Fatal error
Uncaught Error: Class 'AspenGrove_Blocks\\BlockType' not found in wp-content/plugins/forty-two-blocks/blocks/Icon/Icon.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/forty-two-blocks/includes/strings.php:1
- > PHP Fatal error
Uncaught Error: Class 'AspenGrove_Blocks' not found in wp-content/plugins/forty-two-blocks/blocks/PostGrid/PostGrid.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forty-two-blocks/forty-two-blocks.php:147
- > PHP Fatal error
Uncaught Error: Class 'AspenGrove_Blocks\\BlockType' not found in wp-content/plugins/forty-two-blocks/blocks/SocialMediaLinks/SocialMediaLinks.php:4
- > PHP Fatal error
Uncaught Error: Class 'AspenGrove_Blocks' not found in wp-content/plugins/forty-two-blocks/blocks/PostCarousel/PostCarousel.php:4
- > PHP Fatal error
Uncaught Error: Class 'AspenGrove_Blocks\\BlockType' not found in wp-content/plugins/forty-two-blocks/blocks/SearchBar/SearchBar.php:4
- > PHP Fatal error
Uncaught Error: Class 'AspenGrove_Blocks\\BlockType' not found in wp-content/plugins/forty-two-blocks/blocks/CallToAction/CallToAction.php:4
- > PHP Fatal error
Uncaught Error: Class 'AspenGrove_Blocks\\BlockType' not found in wp-content/plugins/forty-two-blocks/blocks/ContactForm7/ContactForm7.php:15
- > 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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: blocks, gutenberg
forty-two-blocks/forty-two-blocks.php Passed 13 tests
"Forty Two Blocks" version 0.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Enhance your Gutenberg content creation experience with our free blocks!
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
Everything looks great! No dangerous files found in this plugin9,807 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 37 | 768 | 262 | 6,757 |
PHP | 12 | 137 | 88 | 1,477 |
CSS | 12 | 38 | 114 | 741 |
Markdown | 3 | 154 | 0 | 441 |
LESS | 8 | 180 | 70 | 305 |
JSON | 3 | 0 | 0 | 67 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 5 | 7.69% |
▷ Public methods | 62 | 95.38% |
▷ Protected methods | 2 | 3.08% |
▷ Private methods | 1 | 1.54% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
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 |
js/flexslider/images/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |