Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▼3.77ms] Passed 4 tests
An overview of server-side resources used by Metaphor Galleries
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.46 | 40.52 ▼3.06 |
Dashboard /wp-admin | 4.00 ▲0.67 | 51.92 ▲5.04 |
Posts /wp-admin/edit.php | 4.06 ▲0.67 | 53.92 ▲10.20 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.60 | 86.26 ▼19.03 |
Media Library /wp-admin/upload.php | 3.86 ▲0.60 | 38.66 ▲1.99 |
Add New /wp-admin/post-new.php?post_type=mtphr_gallery | 4.08 | 55.98 |
Tags /wp-admin/edit-tags.php?taxonomy=mtphr_gallery_tag&post_type=mtphr_gallery | 3.86 | 48.59 |
Categories /wp-admin/edit-tags.php?taxonomy=mtphr_gallery_category&post_type=mtphr_gallery | 3.86 | 38.14 |
Settings /wp-admin/edit.php?post_type=mtphr_gallery&page=mtphr_galleries_settings_menu | 3.86 | 40.58 |
Galleries /wp-admin/edit.php?post_type=mtphr_gallery | 4.00 | 45.62 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_mtphr-gallery-categories |
widget_recent-posts |
mtphr_galleries_settings |
widget_mtphr-gallery-data |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Metaphor Galleries
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,037 ▲266 | 13.89 ▼0.70 | 12.04 ▲10.16 | 37.10 ▼5.53 |
Dashboard /wp-admin | 2,248 ▲63 | 5.88 ▲0.03 | 106.39 ▼7.90 | 37.15 ▼9.79 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.01 ▼0.04 | 43.70 ▲9.66 | 37.42 ▲5.86 |
Add New Post /wp-admin/post-new.php | 1,565 ▲21 | 23.02 ▲4.74 | 679.62 ▲27.23 | 55.56 ▲0.08 |
Media Library /wp-admin/upload.php | 1,427 ▲45 | 4.21 ▲0.04 | 91.37 ▼6.72 | 44.36 ▲2.34 |
Add New /wp-admin/post-new.php?post_type=mtphr_gallery | 3,038 | 7.59 | 202.11 | 76.78 |
Tags /wp-admin/edit-tags.php?taxonomy=mtphr_gallery_tag&post_type=mtphr_gallery | 1,270 | 2.14 | 25.18 | 27.15 |
Categories /wp-admin/edit-tags.php?taxonomy=mtphr_gallery_category&post_type=mtphr_gallery | 1,301 | 2.26 | 29.46 | 29.68 |
Settings /wp-admin/edit.php?post_type=mtphr_gallery&page=mtphr_galleries_settings_menu | 1,341 | 3.49 | 39.96 | 52.95 |
Galleries /wp-admin/edit.php?post_type=mtphr_gallery | 1,328 | 3.53 | 44.73 | 34.17 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- db_upgraded
- widget_mtphr-gallery-categories
- widget_theysaidso_widget
- can_compress_scripts
- mtphr_galleries_settings
- widget_mtphr-gallery-data
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-galleries/includes/admin/generators/gallery.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-galleries/includes/post-types.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mtphr-galleries/mtphr-galleries.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-galleries/includes/scripts.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-galleries/includes/settings.php:187
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-galleries/includes/ajax.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_post_type_support() in wp-content/plugins/mtphr-galleries/includes/functions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mtphr-galleries/includes/filters.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mtphr-galleries/includes/admin/edit-columns.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mtphr-galleries/includes/widget-categories.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (Coming soon.) image required
mtphr-galleries/mtphr-galleries.php 92% from 13 tests
"Metaphor Galleries" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,412 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 845 | 493 | 2,635 |
JavaScript | 9 | 392 | 356 | 1,125 |
PO File | 2 | 339 | 748 | 748 |
CSS | 3 | 48 | 64 | 740 |
HTML | 1 | 4 | 0 | 137 |
SVG | 1 | 1 | 0 | 18 |
XML | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons.png | 1.69KB | 0.53KB | ▼ 68.42% |