77% suments-data-metacleaner-free

Code Review | Metawash

WordPress plugin Metawash scored77%from 54 tests.

About plugin

  • Plugin page: suments-data-meta...
  • Plugin version: 7.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jul 22, 2021
  • Latest release: Feb 6, 2023
  • Number of updates: 21
  • Update frequency: every 27.0 days
  • Top authors: javimoncayo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,059 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.00ms] Passed 4 tests

A check of server-side resources used by Metawash
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1238.97 ▲2.41
Dashboard /wp-admin3.42 ▲0.1151.64 ▼0.94
Posts /wp-admin/edit.php3.54 ▲0.1846.32 ▲1.36
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.01 ▼11.53
Media Library /wp-admin/upload.php3.35 ▲0.1134.77 ▼0.87

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Metawash
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.52 ▼1.007.65 ▲6.0936.17 ▲0.90
Dashboard /wp-admin2,213 ▲395.62 ▼0.0594.05 ▲6.0281.48 ▲38.01
Posts /wp-admin/edit.php2,136 ▲362.01 ▼0.0033.59 ▼2.2431.91 ▼6.10
Add New Post /wp-admin/post-new.php1,553 ▲2523.08 ▲0.12647.81 ▼30.1860.04 ▲10.23
Media Library /wp-admin/upload.php1,433 ▲334.14 ▼0.0696.31 ▼3.5471.79 ▲25.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/suments-data-metacleaner-free/public/partials/plugin-name-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/suments-data-metacleaner-free/template/dashboard.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === suments-data-metacleaner-free === )
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

suments-data-metacleaner-free/metawash.php 77% from 13 tests

This is the main PHP file of "Metawash" version 7.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 ("suments-data-metacleaner-free.php" instead of "metawash.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,821 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
CSS399301,362
PHP13215116973
JavaScript25232230
SVG2500140
PO File14347116

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.29
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods2858.33%
▷ Protected methods00.00%
▷ Private methods2041.67%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/image_contact1.png58.89KB20.87KB▼ 64.56%
admin/img/image_contact.png47.61KB18.11KB▼ 61.97%
admin/img/company-logo.png6.75KB2.70KB▼ 60.04%
admin/img/dash-icon-16x16.png1.95KB0.69KB▼ 64.43%
admin/img/metawash-icon.png1.88KB0.57KB▼ 69.69%