Benchmarks
Plugin footprint 83% 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: ▲0.19MB] [CPU: ▼7.49ms] Passed 4 tests
Analyzing server-side resources used by Useful Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 36.20 ▼0.61 |
Dashboard /wp-admin | 3.51 ▲0.16 | 45.39 ▼14.47 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 43.86 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 83.58 ▼13.38 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.07 ▼0.38 |
Server storage [IO: ▲1.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 157 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Useful Blocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.35 ▼0.01 | 1.67 ▼0.01 | 42.78 ▲2.23 |
Dashboard /wp-admin | 2,207 ▲32 | 5.49 ▼0.14 | 82.21 ▼15.95 | 36.43 ▼5.94 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.95 ▼0.08 | 35.05 ▼0.87 | 33.23 ▼5.31 |
Add New Post /wp-admin/post-new.php | 6,231 ▲4,705 | 19.73 ▼3.89 | 993.90 ▲333.26 | 39.20 ▼16.22 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▲0.02 | 94.14 ▼8.89 | 44.63 ▼0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
5 plugin tags: useful, ponhiro, block, editor, guternberg
useful-blocks/useful-blocks.php Passed 13 tests
The entry point to "Useful Blocks" version 1.7.4 is a PHP file that has certain tags in its header comment area
52 characters long description:
It is a plugin that collects very convenient blocks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected13,244 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 60 | 1,149 | 648 | 8,475 |
Sass | 29 | 735 | 207 | 2,489 |
PHP | 25 | 230 | 220 | 1,095 |
JSON | 22 | 0 | 0 | 795 |
PO File | 1 | 170 | 203 | 366 |
SVG | 1 | 0 | 0 | 21 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 24 | 88.89% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 15 | |
▷ Named functions | 9 | 60.00% |
▷ Anonymous functions | 6 | 40.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/a_person.png | 6.06KB | 2.45KB | ▼ 59.58% |
assets/img/ub_logo.png | 7.21KB | 7.84KB | 0.00% |