Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.17ms] Passed 4 tests
This is a short check of server-side resources used by UnGallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.75 ▼2.22 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.98 ▼1.29 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.94 ▼1.70 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.65 ▼11.45 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.74 ▲4.53 |
UnGallery /wp-admin/options-general.php?page=ungallerysettings | 3.25 | 34.20 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- The plugin illegally modified 1 file (0.09KB) outside of "wp-content/plugins/ungallery/" and "wp-content/uploads/"
- (new file) wp-content/cache/.htaccess
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
version |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by UnGallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.15 ▼1.50 | 1.64 ▼0.16 | 43.37 ▼3.89 |
Dashboard /wp-admin | 2,213 ▲22 | 4.89 ▼0.01 | 97.79 ▼3.31 | 39.10 ▲0.53 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.04 | 34.72 ▼1.17 | 32.58 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.37 ▲0.18 | 600.07 ▼98.61 | 53.34 ▼4.87 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▲0.02 | 99.73 ▼8.22 | 42.62 ▼3.46 |
UnGallery /wp-admin/options-general.php?page=ungallerysettings | 1,060 | 2.02 | 22.83 | 32.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- version
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% 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
- > GET request to /wp-admin/options-general.php?page=ungallerysettings
- > Notice in wp-content/plugins/ungallery/configuration_menu.php+114
Undefined variable: movie_height_name
- > GET request to /wp-admin/options-general.php?page=ungallerysettings
- > Notice in wp-content/plugins/ungallery/configuration_menu.php+115
Undefined variable: movie_width_name
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ungallery/source.php
- > /wp-content/plugins/ungallery/no_fancybox.php
- > /wp-content/plugins/ungallery/zip.php
- > /wp-content/plugins/ungallery/phpthumb/phpThumb.php
- > /wp-content/plugins/ungallery/search.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
'break' not in the 'loop' or 'switch' context in wp-content/plugins/ungallery/phpthumb/phpthumb.class.php on line 3805
- > PHP Fatal error
'break' not in the 'loop' or 'switch' context in wp-content/plugins/ungallery/phpthumb/phpthumb.class.php on line 3805
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/ungallery/ungallery.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ungallery/configuration_menu.php:4
- > 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 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (The gallery browsing view with fancyBox lightbox application featuring thumbnails, navigation buttons, zoom, and slideshow.), #2 (Thumbnails are displayed during lightbox browsing.), #3 (Navigation is available via buttons or arrow keys.), #4 (The UnGallery default view with subdirectories/subgalleries, breadcrumbs, zip, and search available.)
- Requires at least: Invalid plugin version format
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ungallery/ungallery.php Passed 13 tests
This is the main PHP file of "UnGallery" version 2.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Publish thousands of pictures in WordPress, in minutes.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8,221 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 1,465 | 1,041 | 8,221 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 225)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 140.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 945.00 |
Average method complexity | 10.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 225.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 179 | |
▷ Static methods | 42 | 23.46% |
▷ Public methods | 179 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 1.78MB with 1.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 776.49KB | 286.17KB | ▼ 63.15% |
screenshot-3.png | 407.44KB | 161.96KB | ▼ 60.25% |
screenshot-2.png | 412.02KB | 150.16KB | ▼ 63.56% |
screenshot-4.png | 225.84KB | 71.99KB | ▼ 68.12% |