Benchmarks
Plugin footprint 83% 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: ▲0.14MB] [CPU: ▼6.62ms] Passed 4 tests
This is a short check of server-side resources used by Plugins Garbage Collector (Database Cleanup)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.39 ▼3.53 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.50 ▼16.97 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.06 ▲0.88 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 94.37 ▼4.90 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.61 ▼1.09 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Plugins Garbage Collector (Database Cleanup): an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.46 ▲0.17 | 1.61 ▼0.03 | 41.71 ▼3.15 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.11 | 107.16 ▼42.57 | 42.75 ▼1.11 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.03 | 39.43 ▼2.57 | 35.34 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 22.89 ▼0.27 | 710.21 ▲110.54 | 53.72 ▲12.28 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.00 | 98.46 ▲2.63 | 40.79 ▼2.47 |
Database Cleanup /wp-admin/plugins-garbage-collector.php | 26 | 0.44 | 0.07 | 11.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/plugins-garbage-collector.php
- > Network (severe)
wp-admin/plugins-garbage-collector.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (screenshot-1.png Plugins Garbage Collector scan action results.)
plugins-garbage-collector/plugins-garbage-collector.php 85% from 13 tests
The primary PHP file in "Plugins Garbage Collector (Database Cleanup)" version 0.14 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("./lang/")
- Description: Please don't use more than 140 characters for the plugin description (currently 189 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
Everything looks great! No dangerous files found in this plugin1,367 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 289 | 118 | 993 |
JavaScript | 1 | 47 | 11 | 292 |
CSS | 2 | 19 | 15 | 78 |
JSON | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 21 | |
▷ Static methods | 11 | 52.38% |
▷ Public methods | 12 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 42.86% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 5 | 50.00% |
▷ Class constants | 5 | 50.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/vendors/jquery-ui/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
css/vendors/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
css/vendors/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
css/vendors/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
css/vendors/jquery-ui/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |