Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼5.90ms] Passed 4 tests
An overview of server-side resources used by Metaphor Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 44.00 ▼13.61 |
Dashboard /wp-admin | 3.68 ▲0.38 | 53.68 ▲1.65 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 52.78 ▲2.36 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 91.92 ▼8.74 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 39.19 ▼2.90 |
Metaphor Shortcodes /wp-admin/plugins.php?page=mtphr_shortcodes_settings | 3.56 | 35.34 |
Server storage [IO: ▲2.26MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 95 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
mtphr_shortcodes_icon_groups |
mtphr_shortcodes_settings |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
mtphr_shortcodes_version |
Browser metrics Passed 4 tests
Checking browser requirements for Metaphor Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲193 | 13.98 ▼0.41 | 9.37 ▲7.41 | 43.26 ▼9.06 |
Dashboard /wp-admin | 2,244 ▲41 | 4.95 ▼0.95 | 128.20 ▲26.75 | 44.04 ▲2.88 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.26 ▲0.25 | 38.00 ▲1.36 | 34.56 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,610 ▲78 | 17.82 ▼5.44 | 661.75 ▼76.33 | 48.80 ▼6.04 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.34 ▲0.09 | 102.85 ▼15.81 | 43.50 ▼9.58 |
Metaphor Shortcodes /wp-admin/plugins.php?page=mtphr_shortcodes_settings | 1,144 | 2.23 | 29.31 | 41.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 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 9 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- mtphr_shortcodes_version
- theysaidso_admin_options
- mtphr_shortcodes_icon_groups
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- mtphr_shortcodes_settings
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=mtphr_shortcodes_settings
- > Warning in wp-content/plugins/mtphr-shortcodes/includes/admin/scripts.php+13
filemtime(): stat failed for wp-content/plugins/mtphr-shortcodes/includes/metaboxer/metaboxer.css
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
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-shortcodes/includes/admin/generators/tab.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-shortcodes/includes/admin/settings.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-shortcodes/includes/admin/fontastic.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-shortcodes/includes/admin/generators/slide-graph.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-shortcodes/includes/admin/scripts.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mtphr-shortcodes/mtphr-shortcodes.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-shortcodes/includes/admin/generators/pricing-table.php:112
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-shortcodes/includes/admin/generator.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-shortcodes/includes/admin/generators/grid.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-shortcodes/includes/admin/generators/toggle.php:43
- > PHP Fatal error
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 user-side errors
- > GET request to /wp-admin/plugins.php?page=mtphr_shortcodes_settings
- > Network (severe)
wp-content/plugins/mtphr-shortcodes/includes/metaboxer/metaboxer.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: post blocks, posts, post sliders, shortcodes, pricing tables...
mtphr-shortcodes/mtphr-shortcodes.php Passed 13 tests
The main file in "Metaphor Shortcodes" v. 2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
Includes Column Grids, Pricing Tables, Post Sliders & Post Blocks.
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 plugin19,139 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 102 | 114 | 5,295 |
HTML | 1 | 4 | 0 | 3,297 |
SVG | 2 | 1 | 0 | 3,084 |
PHP | 21 | 617 | 324 | 1,943 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 10 | 347 | 319 | 1,228 |
PO File | 3 | 354 | 954 | 766 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 58 | |
▷ Named functions | 58 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mtphr-shortcodes-icon-32.png | 1.16KB | 0.26KB | ▼ 77.26% |
assets/images/mtphr-shortcodes-icon.png | 1.06KB | 0.20KB | ▼ 80.87% |
assets/images/mtphr-shortcodes-icon-14.png | 1.07KB | 0.21KB | ▼ 79.96% |