94% advanced-db-cleaner-mk

Code Review | Advanced DB Cleaner MK

WordPress plugin Advanced DB Cleaner MK scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-db-clean...
  • Plugin version: 1.0
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.1
  • WordPress version: 5.9.2
  • First release: Jan 14, 2021
  • Latest release: Oct 4, 2021
  • Number of updates: 4
  • Update frequency: every 66.0 days
  • Top authors: mertkocakaya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 831 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0457.69 ▲5.69
Dashboard /wp-admin3.45 ▲0.0433.67 ▲0.08
Posts /wp-admin/edit.php3.68 ▲0.0336.90 ▲0.44
Add New Post /wp-admin/post-new.php6.92 ▼0.0690.86 ▼1,192.61
Media Library /wp-admin/upload.php3.33 ▲0.0328.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,807 ▲6315.79 ▼0.087.62 ▲0.962.13 ▼0.61
Dashboard /wp-admin2,936 ▲566.44 ▼0.05131.51 ▼9.34179.16 ▲18.06
Posts /wp-admin/edit.php2,677 ▼173.31 ▼0.1264.75 ▼0.84142.17 ▼1.77
Add New Post /wp-admin/post-new.php1,729 ▲6321.60 ▲0.85451.47 ▲8.68191.13 ▲31.82
Media Library /wp-admin/upload.php1,720 ▲225.82 ▲0.09127.09 ▼22.60203.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

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


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: The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/advanced-db-cleaner-logo.png15.29KB5.66KB▼ 62.96%
assets/img/advanced-db-cleaner-mk-icon.png3.58KB0.95KB▼ 73.41%