84% advanced-db-cleaner-mk

Code Review | Advanced DB Cleaner MK

WordPress plugin Advanced DB Cleaner MK scored 84% 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: 6.3.1
  • 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 / 1,492 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.24ms] Passed 4 tests

Server-side resources used by Advanced DB Cleaner MK
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.30 ▼2.27
Dashboard /wp-admin3.34 ▲0.0445.20 ▼5.50
Posts /wp-admin/edit.php3.39 ▲0.0347.47 ▲7.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.96 ▼4.58
Media Library /wp-admin/upload.php3.26 ▲0.0335.92 ▼0.62

Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Advanced DB Cleaner MK
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10514.74 ▲0.151.86 ▲0.1037.96 ▼5.04
Dashboard /wp-admin2,221 ▲335.86 ▲0.9899.18 ▼8.5784.20 ▲40.91
Posts /wp-admin/edit.php2,106 ▲172.11 ▲0.0639.83 ▲6.0733.75 ▼0.36
Add New Post /wp-admin/post-new.php1,548 ▲3418.27 ▲0.73707.18 ▲28.0168.41 ▲11.82
Media Library /wp-admin/upload.php1,406 ▲184.26 ▲0.0697.26 ▼11.3346.00 ▼4.19

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: The official readme.txt is a good inspiration

advanced-db-cleaner-mk/index.php 92% from 13 tests

This is the main PHP file of "Advanced DB Cleaner MK" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin140 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1509138
CSS2062

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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%