Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.05ms] Passed 4 tests
A check of server-side resources used by Cleaner Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.15 ▼6.33 |
Dashboard /wp-admin | 3.45 ▲0.14 | 44.29 ▼8.63 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 52.08 ▲9.33 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 83.84 ▼14.42 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.81 ▲1.17 |
Cleaner Gallery /wp-admin/themes.php?page=cleaner-gallery | 3.45 | 31.62 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Cleaner Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲74 | 14.80 ▲0.38 | 1.96 ▼0.06 | 38.66 ▼9.49 |
Dashboard /wp-admin | 2,213 ▲28 | 5.83 ▼0.02 | 95.35 ▼2.10 | 37.49 ▼8.06 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 39.03 ▲2.57 | 35.13 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.24 ▲0.14 | 663.44 ▼20.36 | 58.87 ▲1.51 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.19 ▼0.01 | 105.14 ▲2.90 | 43.94 ▼3.69 |
Cleaner Gallery /wp-admin/themes.php?page=cleaner-gallery | 1,127 | 2.02 | 27.65 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=cleaner-gallery
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=cleaner-gallery
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cleaner-gallery/inc/gallery.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cleaner-gallery/cleaner-gallery.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cleaner-gallery/inc/default-filters.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cleaner-gallery/admin/admin.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Gallery from the [Socially Awkward theme](http://wordpress.org/themes/socially-awkward).), #2 (Gallery from the [Chun theme](http://wordpress.org/themes/chun).), #3 (Gallery from the [Picturesque theme](http://wordpress.org/themes/picturesque).), #4 (Cleaner Gallery settings page.)
cleaner-gallery/cleaner-gallery.php 92% from 13 tests
The principal PHP file in "Cleaner Gallery" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 226 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin711 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 223 | 497 | 538 |
Markdown | 1 | 30 | 0 | 99 |
CSS | 2 | 10 | 5 | 74 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 22.39KB | 22.32KB | 0.31% |