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.12MB] [CPU: ▼4.82ms] Passed 4 tests
Analyzing server-side resources used by Block Patterns for Food Bloggers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 34.62 ▼2.98 |
Dashboard /wp-admin | 3.44 ▲0.09 | 44.73 ▼12.29 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.59 ▼0.20 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 90.17 ▼3.79 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.20 ▲4.33 |
Server storage [IO: ▲1.91MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Block Patterns for Food Bloggers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.61 ▼1.06 | 5.61 ▲3.97 | 40.64 ▼2.49 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲0.99 | 107.96 ▼1.90 | 39.72 ▼0.47 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.09 | 39.64 ▲1.08 | 35.87 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,526 ▲12 | 24.04 ▲6.55 | 671.83 ▲32.04 | 62.65 ▲9.29 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.18 ▼0.02 | 95.40 ▼0.56 | 41.60 ▼2.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following items
- 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/search2.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/loop4.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/newsletter3.php:5
- > PHP Warning
Use of undefined constant WPZOOM_FB_PATTERNS_URL - assumed 'WPZOOM_FB_PATTERNS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/hero.php on line 2
- > PHP Warning
Use of undefined constant WPZOOM_FB_PATTERNS_URL - assumed 'WPZOOM_FB_PATTERNS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/instagram.php on line 2
- > PHP Warning
Use of undefined constant WPZOOM_FB_PATTERNS_URL - assumed 'WPZOOM_FB_PATTERNS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/newsletter.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/hero3.php:5
- > PHP Warning
Use of undefined constant WPZOOM_FB_PATTERNS_URL - assumed 'WPZOOM_FB_PATTERNS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/newsletter3.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/loop3.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-patterns-for-food-bloggers/patterns/free/featured/loop2.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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: Screenshot #1 (Patterns Library) image required
block-patterns-for-food-bloggers/block-patterns-for-food-bloggers.php 92% from 13 tests
"Block Patterns for Food Bloggers" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.2")
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
There were no executable files found in this plugin2,629 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 209 | 122 | 956 |
JavaScript | 16 | 121 | 223 | 903 |
Sass | 2 | 173 | 6 | 530 |
CSS | 2 | 26 | 1 | 238 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.45MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
patterns/images/vegetables.png | 1.96KB | 1.29KB | ▼ 34.10% |
patterns/images/chicken.png | 1.87KB | 1.28KB | ▼ 31.70% |
patterns/images/RECIPE-101.png | 2.29KB | 1.08KB | ▼ 52.63% |
screenshot-1.png | 105.21KB | 109.94KB | 0.00% |
patterns/images/pasta.png | 2.69KB | 1.71KB | ▼ 36.48% |