Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼18.33ms] Passed 4 tests
An overview of server-side resources used by SpectrOM DB Cleanup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 45.37 ▼0.59 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.10 ▼13.32 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 72.25 ▲16.87 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.79 ▼43.51 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.95 ▼15.88 |
SpectrOM DB Cleanup /wp-admin/options-general.php?page=spectrom-dbcleanup | 3.26 | 38.65 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
spectrom_dbcleanup_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SpectrOM DB Cleanup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.13 ▼1.45 | 1.84 ▼0.41 | 48.11 ▲2.27 |
Dashboard /wp-admin | 2,210 ▲25 | 4.86 ▼1.02 | 133.39 ▼39.88 | 43.95 ▼5.11 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.00 | 52.39 ▲5.86 | 51.74 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,517 ▼3 | 17.60 ▼5.70 | 669.10 ▼65.66 | 63.08 ▲8.56 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▼0.02 | 93.29 ▼33.09 | 44.30 ▼19.21 |
SpectrOM DB Cleanup /wp-admin/options-general.php?page=spectrom-dbcleanup | 1,042 | 2.04 | 31.88 | 42.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- spectrom_dbcleanup_settings
- db_upgraded
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 50% from 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
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'SpectrOMDBCleanup' not found in wp-content/plugins/spectrom-db-cleanup/install/activate.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/spectrom-db-cleanup/spectrom-db-cleanup.php:38
- > PHP Fatal error
Uncaught Error: Class 'SpectrOMDBCleanup' not found in wp-content/plugins/spectrom-db-cleanup/admin.php:33
- > PHP Fatal error
Uncaught Error: Class 'SpectrOMDBCleanup' not found in wp-content/plugins/spectrom-db-cleanup/cron.php:47
- > PHP Fatal error
Uncaught Error: Class 'SpectrOMDBCleanup' not found in wp-content/plugins/spectrom-db-cleanup/install/deactivate.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: spectromtech, optimize, davejesch, optimizer, report...
spectrom-db-cleanup/spectrom-db-cleanup.php 85% from 13 tests
The principal PHP file in "SpectrOM DB Cleanup" v. 1.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin806 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 167 | 281 | 703 |
CSS | 2 | 26 | 51 | 103 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 12.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 8 | 17.02% |
▷ Public methods | 29 | 61.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 38.30% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/spectrom-logo-plain.png | 8.16KB | 3.50KB | ▼ 57.16% |
assets/img/spectrom.png | 16.67KB | 6.51KB | ▼ 60.95% |