Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.01ms] Passed 4 tests
A check of server-side resources used by Gallery Media Tags
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 40.46 ▼1.69 |
Dashboard /wp-admin | 3.41 ▲0.06 | 46.90 ▼19.10 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.53 ▲4.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.94 ▼15.56 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.21 ▲4.71 |
Media Tags /wp-admin/edit-tags.php?taxonomy=media_tag&post_type=attachment | 3.32 | 33.09 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_mpmt |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Gallery Media Tags: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲149 | 14.12 ▼0.19 | 8.83 ▲6.68 | 42.50 ▼0.51 |
Dashboard /wp-admin | 2,207 ▲19 | 5.80 ▲0.88 | 104.46 ▼9.76 | 37.79 ▼1.56 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.04 | 38.89 ▼2.52 | 34.52 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.21 ▲4.75 | 600.39 ▼27.20 | 48.69 ▼6.26 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.17 ▼0.04 | 96.32 ▼6.05 | 41.66 ▼0.99 |
Media Tags /wp-admin/edit-tags.php?taxonomy=media_tag&post_type=attachment | 1,266 | 2.14 | 29.60 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_mpmt
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
- 4× 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/gallery-media-tags/inc/media-meta-boxes.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-media-tags/inc/functions.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gallery-media-tags/inc/widget-api.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-media-tags/inc/tag-taxonomy.php:36
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
gallery-media-tags/gallery-media-tags.php Passed 13 tests
The main PHP script in "Gallery Media Tags" version 1.1.0 is automatically included on every request by WordPress
52 characters long description:
Simple tags gallery that managed by WordPress media.
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 plugin4,590 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 942 | 406 | 3,289 |
CSS | 3 | 121 | 135 | 563 |
PHP | 6 | 126 | 59 | 448 |
HTML | 1 | 46 | 0 | 205 |
PO File | 1 | 35 | 36 | 84 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/PhotoSwipe/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |