Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.71MB] [CPU: ▼47.11ms] Passed 4 tests
An overview of server-side resources used by WP Widget Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.99 ▼30.40 |
Dashboard /wp-admin | 2.29 ▼1.01 | 11.38 ▼40.43 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.64 ▼41.15 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.62 ▼76.47 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 8.64 ▼27.02 |
Server storage [IO: ▲0.23MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_wpwidget_media_gallery |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Widget Gallery: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.07 | 1.66 ▼0.08 | 44.00 ▼2.33 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▲0.08 | 93.19 ▲0.70 | 43.13 ▲2.63 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.98 ▼0.13 | 35.87 ▼6.09 | 35.23 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.26 ▲0.13 | 682.50 ▼10.24 | 61.13 ▲6.45 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.23 ▼0.00 | 101.95 ▼2.93 | 49.04 ▲4.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wpwidget_media_gallery is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_wpwidget_media_gallery
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: widget gallery, widget, sidebar, gallery, wp-widget...
wp-widget-gallery/wpwidgetgallery.php 92% from 13 tests
Analyzing the main PHP file in "WP Widget Gallery" version 1.5.3
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-widget-gallery.php" instead of "wpwidgetgallery.php")
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
No dangerous file extensions were detected1,176 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 127 | 71 | 657 |
PHP | 2 | 75 | 44 | 394 |
JavaScript | 7 | 23 | 61 | 125 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 14.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
32 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/facebook/contentPatternRight.png | 0.13KB | 0.10KB | ▼ 24.26% |
images/prettyPhoto/facebook/contentPatternTop.png | 0.14KB | 0.11KB | ▼ 21.13% |
images/prettyPhoto/default/sprite_y.png | 1.13KB | 0.13KB | ▼ 88.81% |
images/prettyPhoto/facebook/contentPatternBottom.png | 0.14KB | 0.11KB | ▼ 21.13% |
images/prettyPhoto/dark_rounded/sprite.png | 3.98KB | 2.56KB | ▼ 35.79% |