Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼297.17ms] Passed 4 tests
Server-side resources used by Advanced DB Cleaner MK
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.04 | 57.69 ▲5.69 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.67 ▲0.08 |
Posts /wp-admin/edit.php | 3.68 ▲0.03 | 36.90 ▲0.44 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.06 | 90.86 ▼1,192.61 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 28.80 ▲3.41 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced DB Cleaner MK
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,807 ▲63 | 15.79 ▼0.08 | 7.62 ▲0.96 | 2.13 ▼0.61 |
Dashboard /wp-admin | 2,936 ▲56 | 6.44 ▼0.05 | 131.51 ▼9.34 | 179.16 ▲18.06 |
Posts /wp-admin/edit.php | 2,677 ▼17 | 3.31 ▼0.12 | 64.75 ▼0.84 | 142.17 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,729 ▲63 | 21.60 ▲0.85 | 451.47 ▲8.68 | 191.13 ▲31.82 |
Media Library /wp-admin/upload.php | 1,720 ▲22 | 5.82 ▲0.09 | 127.09 ▼22.60 | 203.80 ▲14.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-db-cleaner-mk/index.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is missing in advanced-db-cleaner-mk/assets to your readme.txt
advanced-db-cleaner-mk/index.php 92% from 13 tests
The main PHP file in "Advanced DB Cleaner MK" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-db-cleaner-mk.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin140 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 50 | 9 | 138 |
CSS | 2 | 0 | 6 | 2 |
PHP code Passed 2 tests
This is a very shot review 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.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and 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/advanced-db-cleaner-logo.png | 15.29KB | 5.66KB | ▼ 62.96% |
assets/img/advanced-db-cleaner-mk-icon.png | 3.58KB | 0.95KB | ▼ 73.41% |