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.14MB] [CPU: ▼4.94ms] Passed 4 tests
Server-side resources used by Block Styles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.64 ▼3.52 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.14 ▲0.89 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.44 ▼0.78 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 87.26 ▼16.36 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.46 ▲1.34 |
Block Styles /wp-admin/options-general.php?page=block-styles | 3.32 | 337.74 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Block Styles
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲66 | 13.58 ▼0.85 | 4.75 ▲2.90 | 42.08 ▼6.99 |
Dashboard /wp-admin | 2,207 ▲16 | 5.80 ▲0.94 | 96.03 ▼5.12 | 38.00 ▼6.54 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.00 | 33.47 ▼2.62 | 34.77 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,819 ▲286 | 23.15 ▲0.03 | 678.57 ▲84.86 | 29.90 ▼19.35 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.14 ▼0.09 | 103.77 ▲3.32 | 46.50 ▲3.88 |
Block Styles /wp-admin/options-general.php?page=block-styles | 1,988 | 2.16 | 24.46 | 34.99 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/block-styles/block-styles.php:21
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: performance, styles, blocks, sustainable
block-styles/block-styles.php Passed 13 tests
The main file in "Block Styles" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
Optimize the way your block styles get loaded.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin409 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 83 | 303 | 375 |
CSS | 34 | 0 | 0 | 34 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/sponsors/wplemon.png | 2.65KB | 2.82KB | 0.00% |