Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼7.25ms] Passed 4 tests
Analyzing server-side resources used by Metaphor Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 47.53 ▲3.51 |
Dashboard /wp-admin | 3.77 ▲0.43 | 53.03 ▼12.31 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 53.01 ▲0.86 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 86.39 ▼20.56 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 37.69 ▲3.03 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_mtphr-collapse |
db_upgraded |
widget_recent-posts |
widget_mtphr-comments |
widget_mtphr-post-navigation |
widget_mtphr-social |
widget_mtphr-contact |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Metaphor Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,049 ▲314 | 15.13 ▲0.78 | 6.20 ▲4.58 | 37.86 ▼5.89 |
Dashboard /wp-admin | 2,341 ▲161 | 6.20 ▲0.51 | 120.71 ▲29.23 | 43.49 ▼1.63 |
Posts /wp-admin/edit.php | 2,272 ▲172 | 3.36 ▲1.32 | 56.27 ▲15.68 | 37.10 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.22 ▲0.16 | 641.90 ▼33.65 | 36.12 ▼18.00 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.17 ▲0.01 | 84.44 ▼15.83 | 42.94 ▼2.83 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_mtphr-collapse
- theysaidso_admin_options
- widget_recent-comments
- widget_mtphr-contact
- db_upgraded
- widget_theysaidso_widget
- widget_mtphr-tabbed-posts
- widget_recent-posts
- can_compress_scripts
- widget_mtphr-posts
- ...
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mtphr-widgets/includes/tabbed-posts.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-widgets/includes/admin/filters.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mtphr-widgets/includes/comments.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-widgets/includes/admin/scripts.php:33
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mtphr-widgets/includes/collapse.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/mtphr-widgets/mtphr-widgets.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtphr-widgets/includes/functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mtphr-widgets/includes/filters.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mtphr-widgets/includes/twitter.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mtphr-widgets/includes/contact.php:8
- > 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 on the user side
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:
- Screenshots: Add a description for screenshot #8 in mtphr-widgets/assets to your readme.txt
mtphr-widgets/mtphr-widgets.php Passed 13 tests
"Metaphor Widgets" version 2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
Custom widgets pack. Includes recent posts, recent comments, contact, twitter, social, & navigation widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected4,903 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 701 | 485 | 2,426 |
CSS | 4 | 62 | 77 | 917 |
HTML | 1 | 4 | 0 | 553 |
PO File | 2 | 212 | 515 | 480 |
JavaScript | 5 | 133 | 159 | 457 |
SVG | 1 | 1 | 0 | 70 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 65 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin