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.08MB] [CPU: ▼6.48ms] Passed 4 tests
A check of server-side resources used by Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.44 ▲4.44 |
Dashboard /wp-admin | 3.40 ▲0.05 | 46.34 ▼12.64 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.15 ▼2.17 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 81.97 ▼15.56 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.96 ▲6.18 |
Add New Gallery /wp-admin/post-new.php?post_type=wd_gallery | 3.51 | 50.27 |
All Galleries /wp-admin/edit.php?post_type=wd_gallery | 3.40 | 41.82 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
WD_Default_Settings |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲95 | 14.09 ▼0.51 | 2.01 ▲0.40 | 43.85 ▲2.48 |
Dashboard /wp-admin | 2,234 ▲57 | 5.67 ▼0.04 | 84.67 ▼2.03 | 83.52 ▲40.64 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.00 ▲0.04 | 35.78 ▼3.57 | 34.26 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,577 ▲40 | 22.91 ▲4.62 | 779.23 ▲157.31 | 58.64 ▼2.70 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.25 ▲0.12 | 96.86 ▼18.87 | 77.79 ▲30.39 |
Add New Gallery /wp-admin/post-new.php?post_type=wd_gallery | 2,728 | 3.92 | 74.90 | 142.02 |
All Galleries /wp-admin/edit.php?post_type=wd_gallery | 1,298 | 3.52 | 47.80 | 61.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% 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 require attention:
- Tags: You are using too many tags: 18 tag instead of maximum 10
multi-gallery/gallery.php 77% from 13 tests
The principal PHP file in "Gallery" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 268 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("multi-gallery.php" instead of "gallery.php")
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
Everything looks great! No dangerous files found in this plugin11,184 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 58 | 17 | 7,675 |
JavaScript | 5 | 786 | 311 | 2,402 |
PHP | 9 | 134 | 33 | 818 |
SVG | 2 | 0 | 0 | 289 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 5 | 20.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
42 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/incontent.png | 36.87KB | 10.94KB | ▼ 70.33% |
lightbox/images/close.png | 4.13KB | 1.49KB | ▼ 63.97% |
lightbox/images/prettyPhoto/default/sprite_y.png | 1.13KB | 0.13KB | ▼ 88.81% |
lightbox/images/prettyPhoto/facebook/btnNext.png | 0.83KB | 0.57KB | ▼ 30.77% |
lightbox/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |