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.25MB] [CPU: ▼12.99ms] Passed 4 tests
This is a short check of server-side resources used by MIR blocks and shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.66 ▼1.07 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.03 ▼2.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.81 ▼0.10 |
Add New Post /wp-admin/post-new.php | 4.82 ▼1.07 | 53.13 ▼46.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.42 ▼2.13 |
Server storage [IO: ▲17.11MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 682 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
mir_shortcodes_cpt |
widget_recent-posts |
mir_shortcodes |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
mir_shortcodes_tax |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MIR blocks and shortcodes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲183 | 13.80 ▼0.46 | 10.03 ▲8.11 | 41.38 ▼2.25 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▼0.94 | 109.44 ▲5.65 | 41.22 ▼3.78 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.00 | 38.82 ▼2.37 | 34.18 ▼0.41 |
Add New Post /wp-admin/post-new.php | 6,448 ▲4,934 | 20.49 ▲3.02 | 802.51 ▲139.96 | 34.06 ▼29.55 |
Media Library /wp-admin/upload.php | 1,388 ▲9 | 4.22 ▲0.01 | 94.95 ▼2.56 | 40.48 ▼3.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- theysaidso_admin_options
- mir_shortcodes_tax
- can_compress_scripts
- mir_shortcodes_cpt
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- mir_shortcodes
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/mir-blocks-and-shortcodes/vendor/leafo/scssphp/src/Formatter/Compressed.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mir-blocks-and-shortcodes/frontend-templates/function/msc-general.php:2
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/mir-blocks-and-shortcodes/vendor/leafo/scssphp/src/Formatter/Crunched.php:22
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/mir-blocks-and-shortcodes/vendor/leafo/scssphp/src/Formatter/Expanded.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mir-blocks-and-shortcodes/frontend-templates/function/msc-general.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mir-blocks-and-shortcodes/frontend-templates/function/msc-general.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mir-blocks-and-shortcodes/frontend-templates/function/msc-general.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mir-blocks-and-shortcodes/frontend-templates/function/msc-general.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mir-blocks-and-shortcodes/frontend-templates/function/msc-general.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mir-blocks-and-shortcodes/frontend-templates/function/msc-general.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Requires php: Invalid plugin version format
mir-blocks-and-shortcodes/mir-blocks-and-shortcodes.php Passed 13 tests
The main PHP script in "MIR blocks and shortcodes" version 1.0.0 is automatically included on every request by WordPress
77 characters long description:
It's a block / shortcode toolbox which makes your wordpress live much easier.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected81,667 lines of code in 245 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 3,896 | 116 | 29,069 |
JavaScript | 58 | 5,071 | 2,612 | 24,718 |
JSON | 7 | 2 | 0 | 11,351 |
PHP | 52 | 2,231 | 3,063 | 8,052 |
Sass | 90 | 1,556 | 1,115 | 6,776 |
HTML | 13 | 111 | 9 | 1,365 |
Markdown | 4 | 105 | 0 | 245 |
SVG | 7 | 0 | 5 | 91 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 41.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 735.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 2 | 5.71% |
▷ Concrete classes | 33 | 94.29% |
▷ Final classes | 1 | 3.03% |
Methods | 386 | |
▷ Static methods | 16 | 4.15% |
▷ Public methods | 119 | 30.83% |
▷ Protected methods | 256 | 66.32% |
▷ Private methods | 11 | 2.85% |
Functions | 49 | |
▷ Named functions | 36 | 73.47% |
▷ Anonymous functions | 13 | 26.53% |
Constants | 65 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 65 | 100.00% |
▷ Public constants | 65 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 2.00MB with 1.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
frontend-templates/assets/img/q_top.png | 18.84KB | 0.25KB | ▼ 98.67% |
frontend-templates/assets/img/pattern.png | 1,950.81KB | 693.86KB | ▼ 64.43% |
frontend-templates/assets/img/q_bottom.png | 18.84KB | 0.25KB | ▼ 98.68% |
frontend-templates/assets/img/logo.png | 22.79KB | 3.84KB | ▼ 83.14% |
frontend-templates/assets/img/icon/ic-cal.png | 14.90KB | 0.85KB | ▼ 94.28% |