Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/unc-gallery/unc_image.inc.php+701
Methods with the same name as their class will not be constructors in a future version of PHP; iptc has a deprecated constructor
Server metrics [RAM: ▼1.44MB] [CPU: ▼47.57ms] Passed 4 tests
Server-side resources used by Uncovery Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.54 ▼0.92 | 7.61 ▼32.70 |
Dashboard /wp-admin | 2.56 ▼0.74 | 8.74 ▼37.20 |
Posts /wp-admin/edit.php | 2.56 ▼0.79 | 7.59 ▼41.16 |
Add New Post /wp-admin/post-new.php | 2.56 ▼3.32 | 8.71 ▼79.23 |
Media Library /wp-admin/upload.php | 2.56 ▼0.66 | 9.59 ▼24.04 |
Server storage [IO: ▲5.44MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/unc-gallery/" and "wp-content/uploads/"
- (new file) wp-content/unc_gallery/.empty
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Uncovery Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,039 ▲293 | 13.88 ▼0.54 | 8.20 ▲6.57 | 38.87 ▼5.34 |
Dashboard /wp-admin | 2,225 ▲37 | 4.90 ▼0.98 | 98.08 ▼13.15 | 41.14 ▼6.73 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.05 ▲0.01 | 33.48 ▼12.76 | 35.50 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,555 ▲13 | 17.92 ▼0.49 | 620.18 ▲8.50 | 48.72 ▲0.19 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.24 ▲0.06 | 91.26 ▼6.25 | 42.47 ▼0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/unc-gallery/unc_image.inc.php+701
Methods with the same name as their class will not be constructors in a future version of PHP; iptc has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test
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 on the user side
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
5 plugin tags: photos, photoblog, date, photo, gallery
unc-gallery/unc_gallery.php 92% from 13 tests
The main file in "Uncovery Gallery" v. 4.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("unc-gallery.php" instead of "unc_gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,934 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 704 | 1,026 | 3,592 |
CSS | 5 | 163 | 154 | 1,033 |
Markdown | 1 | 83 | 0 | 198 |
JavaScript | 4 | 14 | 57 | 110 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 84.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 54 | |
▷ Static methods | 1 | 1.85% |
▷ Public methods | 15 | 27.78% |
▷ Protected methods | 39 | 72.22% |
▷ Private methods | 0 | 0.00% |
Functions | 78 | |
▷ Named functions | 78 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 4.78MB with 1.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prev.png | 1.33KB | 1.59KB | 0.00% |
images/screenshot-15.png | 19.61KB | 9.47KB | ▼ 51.70% |
images/screenshot-13.png | 493.42KB | 139.83KB | ▼ 71.66% |
images/screenshot-6.png | 7.44KB | 4.16KB | ▼ 44.17% |
css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |