Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▲0.24ms] Passed 4 tests
An overview of server-side resources used by Styles Library
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 41.92 ▲4.63 |
Dashboard /wp-admin | 3.60 ▲0.26 | 50.86 ▼10.99 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 47.84 ▲2.59 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 233.84 ▲133.15 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 39.40 ▲4.74 |
Categories /wp-admin/edit-tags.php?taxonomy=pattern-category&post_type=ea_block_pattern | 3.51 | 38.26 |
Add New /wp-admin/post-new.php?post_type=ea_block_pattern | 6.41 | 199.14 |
All Patterns /wp-admin/edit.php?post_type=ea_block_pattern | 3.55 | 40.78 |
Keywords /wp-admin/edit-tags.php?taxonomy=pattern-keyword&post_type=ea_block_pattern | 3.50 | 33.98 |
Server storage [IO: ▲7.31MB] [DB: ▲0.14MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Styles Library
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,132 ▲386 | 24.20 ▲9.82 | 5.95 ▲4.21 | 43.22 ▼0.86 |
Dashboard /wp-admin | 2,424 ▲244 | 14.25 ▲9.21 | 276.98 ▲148.65 | 43.15 ▼4.08 |
Posts /wp-admin/edit.php | 2,357 ▲268 | 11.67 ▲9.66 | 126.67 ▲92.57 | 34.77 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,757 ▲238 | 23.42 ▲0.36 | 565.91 ▼101.38 | 39.10 ▼11.74 |
Media Library /wp-admin/upload.php | 1,599 ▲211 | 13.06 ▲8.83 | 145.59 ▲38.67 | 41.27 ▼5.46 |
Categories /wp-admin/edit-tags.php?taxonomy=pattern-category&post_type=ea_block_pattern | 1,542 | 11.55 | 114.39 | 30.26 |
Add New /wp-admin/post-new.php?post_type=ea_block_pattern | 1,615 | 17.15 | 764.25 | 40.67 |
All Patterns /wp-admin/edit.php?post_type=ea_block_pattern | 1,414 | 11.73 | 109.13 | 28.07 |
Keywords /wp-admin/edit-tags.php?taxonomy=pattern-keyword&post_type=ea_block_pattern | 1,514 | 11.51 | 114.58 | 29.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.14MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=ea_block_pattern
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
Using custom components as toolbar controls is deprecated since version 5.6. Please use ToolbarItem, ToolbarButton or ToolbarDropdownMenu components instead. See: https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: block patterns, gutenberg, blocks, block editor, patterns
styles-library/ea-styles-library.php 85% from 13 tests
The main file in "Styles Library" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("styles-library.php" instead of "ea-styles-library.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin3,133 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 323 | 680 | 1,317 |
JavaScript | 20 | 172 | 208 | 1,222 |
Sass | 3 | 109 | 0 | 497 |
Markdown | 1 | 40 | 0 | 77 |
SVG | 2 | 0 | 1 | 11 |
JSON | 1 | 0 | 0 | 5 |
CSS | 3 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 22 | 29.73% |
▷ Public methods | 68 | 91.89% |
▷ Protected methods | 4 | 5.41% |
▷ Private methods | 2 | 2.70% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 7.13MB with 5.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-2.png | 539.32KB | 143.64KB | ▼ 73.37% |
.wordpress-org/banner-772x250.png | 146.63KB | 48.24KB | ▼ 67.10% |
.wordpress-org/screenshot-1.png | 525.50KB | 135.46KB | ▼ 74.22% |
.wordpress-org/screenshot-4.png | 537.03KB | 140.66KB | ▼ 73.81% |
.wordpress-org/banner-1544x500.png | 496.75KB | 157.26KB | ▼ 68.34% |