Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/miaoroom-toolbox/src/core/core.php+60
date_default_timezone_set(): Timezone ID '' is invalid
Server metrics [RAM: ▼1.12MB] [CPU: ▼49.49ms] Passed 4 tests
Server-side resources used by Miaoroom ToolBox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▼0.58 | 12.98 ▼27.35 |
Dashboard /wp-admin | 2.90 ▼0.45 | 17.85 ▼44.04 |
Posts /wp-admin/edit.php | 2.90 ▼0.46 | 15.65 ▼32.88 |
Add New Post /wp-admin/post-new.php | 2.90 ▼2.99 | 15.11 ▼93.67 |
Media Library /wp-admin/upload.php | 2.90 ▼0.33 | 20.92 ▼16.67 |
Server storage [IO: ▲3.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 345 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
MRTB |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Miaoroom ToolBox: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,070 ▲309 | 15.05 ▲0.78 | 2.13 ▲0.27 | 43.37 ▲0.72 |
Dashboard /wp-admin | 2,442 ▲265 | 6.70 ▲1.11 | 126.47 ▲36.06 | 48.40 ▲4.49 |
Posts /wp-admin/edit.php | 2,372 ▲275 | 3.81 ▲1.84 | 53.03 ▲12.13 | 39.47 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,619 ▲87 | 23.46 ▲0.27 | 700.55 ▲39.13 | 41.88 ▼26.24 |
Media Library /wp-admin/upload.php | 1,506 ▲106 | 4.75 ▲0.50 | 97.10 ▼18.90 | 53.33 ▲3.15 |
喵容聚合图床设置 /wp-admin/admin.php?page=miaoroom-toolbox-settings#tab=1 | 1,505 | 3.71 | 66.61 | 130.00 |
优化设置 /wp-admin/admin.php?page=miaoroom-toolbox-settings#tab=2 | 1,495 | 3.58 | 48.47 | 52.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/miaoroom-toolbox/src/core/core.php+60
date_default_timezone_set(): Timezone ID '' is invalid
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- MRTB
- widget_theysaidso_widget
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 125× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/psr7/tests/StreamWrapperTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/guzzle/tests/InternalUtilsTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/psr7/tests/ResponseTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/psr7/tests/LimitStreamTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/guzzle/tests/UriTemplateTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/promises/tests/AggregateExceptionTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/guzzle/tests/HandlerStackTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/promises/tests/RejectedPromiseTest.php:11
- > PHP Warning
fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/guzzle/build/Burgomaster.php on line 115
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/miaoroom-toolbox/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: miaoroom, cdn, wordpress
miaoroom-toolbox/miaoroom-toolbox.php 77% from 13 tests
The entry point to "Miaoroom ToolBox" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 177 characters long)
- 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
- Git Repository: A Git repository was detected inside this plugin
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 plugin43,811 lines of code in 307 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 257 | 5,707 | 7,068 | 30,443 |
JavaScript | 5 | 1,243 | 400 | 4,063 |
CSS | 4 | 283 | 466 | 3,967 |
Markdown | 8 | 689 | 0 | 2,816 |
reStructuredText | 8 | 859 | 1,081 | 1,133 |
JSON | 9 | 0 | 0 | 815 |
make | 4 | 47 | 5 | 202 |
PO File | 2 | 71 | 79 | 174 |
YAML | 3 | 19 | 1 | 101 |
XML | 3 | 0 | 0 | 57 |
Python | 1 | 18 | 22 | 28 |
Dockerfile | 1 | 8 | 0 | 10 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 203 | |
▷ Abstract classes | 4 | 1.97% |
▷ Concrete classes | 199 | 98.03% |
▷ Final classes | 16 | 8.04% |
Methods | 1,905 | |
▷ Static methods | 187 | 9.82% |
▷ Public methods | 1,734 | 91.02% |
▷ Protected methods | 30 | 1.57% |
▷ Private methods | 141 | 7.40% |
Functions | 591 | |
▷ Named functions | 158 | 26.73% |
▷ Anonymous functions | 433 | 73.27% |
Constants | 110 | |
▷ Global constants | 49 | 44.55% |
▷ Class constants | 61 | 55.45% |
▷ Public constants | 61 | 100.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
6 PNG files occupy 1.25MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 382.84KB | 116.37KB | ▼ 69.60% |
vendor/guzzlehttp/guzzle/docs/_static/guzzle-icon.png | 0.78KB | 0.94KB | 0.00% |
admin/CSF/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
screenshot-3.png | 537.99KB | 168.44KB | ▼ 68.69% |
vendor/guzzlehttp/guzzle/docs/_static/logo.png | 241.87KB | 69.68KB | ▼ 71.19% |