Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.93ms] Passed 4 tests
Analyzing server-side resources used by MyWP Block Pattern - Block Pattern Builder for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 46.89 ▲1.52 |
Dashboard /wp-admin | 3.46 ▲0.16 | 53.35 ▲1.02 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.46 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 91.23 ▼5.02 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 44.21 ▲9.39 |
Categories /wp-admin/edit-tags.php?taxonomy=mywp-category-custom-patterns&post_type=mywp-custom-patterns | 3.39 | 40.17 |
All Custom Patterns /wp-admin/edit.php?post_type=mywp-custom-patterns | 3.44 | 42.79 |
Add /wp-admin/post-new.php?post_type=mywp-custom-patterns | 6.13 | 86.02 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for MyWP Block Pattern - Block Pattern Builder for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲48 | 14.35 ▼0.00 | 2.19 ▲0.10 | 45.12 ▲0.06 |
Dashboard /wp-admin | 2,243 ▲63 | 5.64 ▼0.01 | 86.17 ▼1.95 | 41.70 ▲0.34 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 1.99 ▲0.03 | 38.24 ▲3.64 | 34.09 ▲2.00 |
Add New Post /wp-admin/post-new.php | 1,723 ▲197 | 22.34 ▼1.34 | 678.52 ▼21.60 | 63.25 ▲8.08 |
Media Library /wp-admin/upload.php | 1,445 ▲42 | 4.24 ▼0.02 | 96.80 ▼0.44 | 39.53 ▼5.11 |
Categories /wp-admin/edit-tags.php?taxonomy=mywp-category-custom-patterns&post_type=mywp-custom-patterns | 1,295 | 2.13 | 28.80 | 30.10 |
All Custom Patterns /wp-admin/edit.php?post_type=mywp-custom-patterns | 1,165 | 1.93 | 32.50 | 86.24 |
Add /wp-admin/post-new.php?post_type=mywp-custom-patterns | 1,519 | 16.90 | 866.26 | 30.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mywp-custom-patterns/mywp-custom-patterns.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mywp-custom-patterns/admin-parts/admin-header.php:11
- > PHP Fatal error
Uncaught Error: Class 'Whodunit\\MywpCustomPatterns\\Init\\Plugin' not found in wp-content/plugins/mywp-custom-patterns/core/Core.php:5
- > 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 96% from 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
6 plugin tags: gutenberg, patterns, block-editor, builder, block pattern...
mywp-custom-patterns/mywp-custom-patterns.php 92% from 13 tests
The main PHP script in "MyWP Block Pattern - Block Pattern Builder for WordPress" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,256 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 292 | 191 | 861 |
JavaScript | 2 | 48 | 90 | 267 |
CSS | 2 | 6 | 4 | 91 |
JSON | 2 | 0 | 0 | 21 |
SVG | 3 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 12.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 14 | 26.42% |
▷ Public methods | 50 | 94.34% |
▷ Protected methods | 1 | 1.89% |
▷ Private methods | 2 | 3.77% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin