Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.88MB] [CPU: ▼32.95ms] Passed 4 tests
A check of server-side resources used by MW Team Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.14 ▲2.54 |
Dashboard /wp-admin | 3.06 ▼0.24 | 25.20 ▼23.18 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 24.18 ▼24.52 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 26.34 ▼71.17 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 22.15 ▼12.94 |
Add Member /wp-admin/post-new.php?post_type=mwtg_team | 3.06 | 24.89 |
All Member /wp-admin/edit.php?post_type=mwtg_team | 3.07 | 25.12 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=mwtg_team | 3.07 | 23.30 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=mwtg_team | 3.07 | 24.02 |
Options /wp-admin/edit.php?post_type=mwtg_team&page=mw-plugin-options | 3.07 | 28.19 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
category_children |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
MW Team Gallery: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.32 ▼1.04 | 1.71 ▼0.04 | 44.05 ▲5.39 |
Dashboard /wp-admin | 2,248 ▲60 | 5.87 ▲0.88 | 104.07 ▼20.01 | 41.57 ▼3.16 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 1.97 ▼0.02 | 40.68 ▲0.26 | 36.46 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,566 ▲33 | 23.10 ▼0.12 | 617.27 ▼61.22 | 48.94 ▼5.43 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.20 ▲0.01 | 97.04 ▼11.15 | 45.57 ▲3.46 |
Add Member /wp-admin/post-new.php?post_type=mwtg_team | 2,487 | 7.75 | 191.72 | 70.77 |
All Member /wp-admin/edit.php?post_type=mwtg_team | 1,144 | 1.99 | 32.45 | 28.76 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=mwtg_team | 1,346 | 2.14 | 30.07 | 30.11 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=mwtg_team | 1,482 | 2.14 | 31.49 | 33.73 |
Options /wp-admin/edit.php?post_type=mwtg_team&page=mw-plugin-options | 852 | 2.02 | 33.83 | 55.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- category_children
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mwtg_team&page=mw-plugin-options
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/edit.php?post_type=mwtg_team&page=mw-plugin-options
- > Notice in wp-content/plugins/mw-team-gallery/mw-team-gallery.php+482
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mw-team-gallery/mw-team-gallery.php:96
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png)
mw-team-gallery/mw-team-gallery.php 85% from 13 tests
The main file in "MW Team Gallery" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 235 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin370 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 105 | 29 | 370 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.88MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 108.03KB | 35.70KB | ▼ 66.95% |
screenshot-5.png | 92.83KB | 29.17KB | ▼ 68.58% |
screenshot-2.png | 135.77KB | 37.51KB | ▼ 72.37% |
screenshot-1.png | 82.25KB | 23.59KB | ▼ 71.31% |
screenshot-3.png | 410.82KB | 125.37KB | ▼ 69.48% |