90% mk-postmeta-cleaner

Code Review | MK Postmeta Cleaner

WordPress plugin MK Postmeta Cleaner scored90%from 54 tests.

About plugin

  • Plugin page: mk-postmeta-cleaner
  • Plugin version: 1.0
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 28, 2020
  • Latest release: Jul 29, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: mertkocakaya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /799 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.55ms] Passed 4 tests

This is a short check of server-side resources used by MK Postmeta Cleaner
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.13 ▼5.61
Dashboard /wp-admin3.31 ▲0.0145.59 ▼5.16
Posts /wp-admin/edit.php3.36 ▲0.0149.66 ▲3.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.02 ▲2.16
Media Library /wp-admin/upload.php3.23 ▲0.0134.95 ▲2.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

MK Postmeta Cleaner: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.20 ▼1.211.82 ▲0.1340.21 ▼5.22
Dashboard /wp-admin2,221 ▲335.81 ▲0.9197.70 ▼2.9465.43 ▲26.21
Posts /wp-admin/edit.php2,114 ▲281.99 ▼0.0237.55 ▲3.0234.10 ▼2.38
Add New Post /wp-admin/post-new.php1,540 ▼118.23 ▼4.96712.21 ▲52.2365.84 ▲9.74
Media Library /wp-admin/upload.php1,403 ▲154.21 ▲0.0196.23 ▼0.7870.83 ▲28.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: postmeta, postmetaclean, cleaner, dbclean

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

The primary PHP file in "MK Postmeta Cleaner" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("mk-postmeta-cleaner.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected178 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2249149
CSS25629

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
mk-postmeta-cleaner-icon.png3.47KB0.98KB▼ 71.68%
mk-postmeta-cleaner-banner.png46.22KB15.53KB▼ 66.40%