Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.51ms] Passed 4 tests
This is a short check of server-side resources used by Mhr Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.13 | 48.80 ▲3.45 |
Dashboard /wp-admin | 3.71 ▲0.15 | 55.36 ▼3.64 |
Posts /wp-admin/edit.php | 3.77 ▲0.09 | 56.84 ▲6.19 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.11 | 88.31 ▼10.48 |
Media Library /wp-admin/upload.php | 3.58 ▲0.09 | 42.98 ▲4.62 |
PhotoGallery /wp-admin/edit.php?post_type=photogallery | 3.62 | 39.15 |
VideoGallery /wp-admin/edit.php?post_type=videogallery | 3.62 | 40.26 |
Add New /wp-admin/post-new.php?post_type=videogallery | 3.61 | 49.84 |
Add New /wp-admin/post-new.php?post_type=photogallery | 3.70 | 51.97 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Mhr Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,256 ▲510 | 14.14 ▼0.26 | 18.91 ▲16.61 | 47.34 ▲5.08 |
Dashboard /wp-admin | 2,253 ▲73 | 5.67 ▼0.02 | 91.21 ▼11.94 | 42.27 ▼1.14 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.03 ▲0.03 | 38.15 ▲0.29 | 34.54 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,576 ▲43 | 23.06 ▼0.18 | 653.77 ▼34.30 | 62.00 ▼1.32 |
Media Library /wp-admin/upload.php | 1,449 ▲55 | 4.25 ▲0.01 | 99.70 ▼2.54 | 41.40 ▼7.02 |
PhotoGallery /wp-admin/edit.php?post_type=photogallery | 1,122 | 2.00 | 30.57 | 30.66 |
VideoGallery /wp-admin/edit.php?post_type=videogallery | 1,122 | 1.99 | 34.84 | 29.31 |
Add New /wp-admin/post-new.php?post_type=videogallery | 1,439 | 2.48 | 49.15 | 52.69 |
Add New /wp-admin/post-new.php?post_type=photogallery | 2,219 | 7.54 | 170.75 | 64.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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 no errors were found, this is by no means 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mhr-gallery/includes/class-mhr-gallery.php:251
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in mhr-gallery/assets to your readme.txt
- Tags: There are too many tags (12 tag instead of maximum 10)
mhr-gallery/mhr-gallery.php 92% from 13 tests
The main PHP file in "Mhr Gallery" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected27,876 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1 | 6,102 | 18,757 |
JavaScript | 5 | 3,531 | 59 | 8,887 |
PHP | 12 | 146 | 475 | 211 |
PO File | 1 | 2 | 2 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin