Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼13.93ms] Passed 4 tests
Analyzing server-side resources used by Multiple Gallery on Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.27 ▼5.68 |
Dashboard /wp-admin | 3.38 ▲0.07 | 45.78 ▼2.31 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.31 ▲3.60 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.66 | 38.15 ▼49.82 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.62 ▲2.10 |
Multiple Gallery on Post /wp-admin/options-general.php?page=mgop_setting_menu_id | 3.24 | 30.23 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Multiple Gallery on Post
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.68 ▼0.69 | 1.65 ▼0.46 | 46.48 ▼4.67 |
Dashboard /wp-admin | 2,214 ▲23 | 4.87 ▼1.01 | 109.32 ▼4.79 | 38.26 ▼4.07 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 2.25 ▲0.24 | 40.58 ▲4.41 | 35.76 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.24 ▼0.04 | 656.79 ▼20.78 | 59.86 ▲3.21 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.25 ▲0.03 | 109.60 ▲8.15 | 44.92 ▲0.76 |
Multiple Gallery on Post /wp-admin/options-general.php?page=mgop_setting_menu_id | 947 | 1.95 | 29.59 | 26.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=mgop_setting_menu_id
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=mgop_setting_menu_id
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mgop_setting_menu_id
- > Notice in wp-content/plugins/multiple-gallery-on-post/admin/options.php+78
Trying to access array offset on value of type bool
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mgop_setting_menu_id
- > Notice in wp-content/plugins/multiple-gallery-on-post/admin/options.php+78
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mgop_setting_menu_id
- > Warning in wp-content/plugins/multiple-gallery-on-post/admin/options.php+78
count(): Parameter must be an array or an object that implements Countable
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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multiple-gallery-on-post/admin/metabox.php:95
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/multiple-gallery-on-post/functions.php:187
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/multiple-gallery-on-post/multiple-gallery-on-post.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-gallery-on-post/admin/options.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Settings page), #2 (Add images to gallery through edit post page), #3 (The galleries preview on post)
multiple-gallery-on-post/multiple-gallery-on-post.php 92% from 13 tests
Analyzing the main PHP file in "Multiple Gallery on Post" version 0.4
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 149 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
There were no executable files found in this plugin392 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 53 | 34 | 203 |
CSS | 2 | 26 | 2 | 153 |
JavaScript | 1 | 24 | 3 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/uploader-icons.png | 1.56KB | 2.04KB | 0.00% |
admin/images/mgop-logo.png | 8.73KB | 4.66KB | ▼ 46.69% |
admin/images/draggable.png | 3.62KB | 0.25KB | ▼ 93.04% |
admin/images/welcome-icons.png | 2.10KB | 2.08KB | ▼ 1.21% |