77% easy-wp-cleaner

Code Review | Easy WP Cleaner

WordPress plugin Easy WP Cleaner scored77%from 54 tests.

About plugin

  • Plugin page: easy-wp-cleaner
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Feb 17, 2023
  • Number of updates: 33
  • Update frequency: every 83.3 days
  • Top authors: nikunjsoni (100%)

Code review

54 tests

User reviews

41 reviews

Install metrics

3,000+ active /35,866 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼4.21ms] Passed 4 tests

This is a short check of server-side resources used by Easy WP Cleaner
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.79 ▲2.50
Dashboard /wp-admin3.36 ▲0.0256.68 ▼7.46
Posts /wp-admin/edit.php3.41 ▲0.0650.16 ▼3.20
Add New Post /wp-admin/post-new.php5.94 ▲0.06102.05 ▼4.34
Media Library /wp-admin/upload.php3.28 ▲0.0637.99 ▼1.85
Easy WP Cleaner /wp-admin/options-general.php?page=easy-wp-cleaner/easy-wp-cleaner-admin.php3.2744.78

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy WP Cleaner
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.27 ▼0.271.85 ▲0.1242.78 ▲1.45
Dashboard /wp-admin2,202 ▲285.60 ▼0.0588.03 ▼16.6962.87 ▲24.00
Posts /wp-admin/edit.php2,104 ▲11.96 ▼0.0942.82 ▲2.9738.44 ▲0.62
Add New Post /wp-admin/post-new.php1,557 ▲2518.50 ▼4.41651.49 ▼18.2653.41 ▼4.23
Media Library /wp-admin/upload.php1,401 ▲44.22 ▼0.0399.94 ▼7.5245.73 ▼1.98
Easy WP Cleaner /wp-admin/options-general.php?page=easy-wp-cleaner/easy-wp-cleaner-admin.php1,2222.0524.4933.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-wp-cleaner/easy-wp-cleaner-help.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-wp-cleaner/easy-wp-cleaner-admin.php:411

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Admin page Settings tab screenshot), #2 (Admin page Settings tab screenshot), #3 (Admin page Help tab screenshot)
  • Tags: You are using too many tags: 27 tag instead of maximum 10
You can take inspiration from this readme.txt

easy-wp-cleaner/easy-wp-cleaner.php 85% from 13 tests

"Easy WP Cleaner" version 1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected527 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35613527

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
3 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png91.33KB42.52KB▼ 53.44%
screenshot-1.png48.29KB12.60KB▼ 73.92%
screenshot-2.png62.17KB17.48KB▼ 71.87%