89% wpa-clean-updates

Code Review | WP Switch Clean Updates On

WordPress plugin WP Switch Clean Updates On scored89%from 54 tests.

About plugin

  • Plugin page: wpa-clean-updates
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-6.0
  • WordPress version: 6.3.1
  • First release: Apr 10, 2018
  • Latest release: Jun 28, 2022
  • Number of updates: 8
  • Update frequency: every 192.5 days
  • Top authors: arjanolsder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.88ms] Passed 4 tests

A check of server-side resources used by WP Switch Clean Updates On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.53 ▲0.94
Dashboard /wp-admin3.31 ▲0.0048.28 ▼2.95
Posts /wp-admin/edit.php3.36 ▲0.0050.98 ▼3.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.86 ▼6.80
Media Library /wp-admin/upload.php3.23 ▲0.0036.83 ▼2.49

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Switch Clean Updates On
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.121.68 ▼0.1543.56 ▲1.83
Dashboard /wp-admin2,192 ▲125.55 ▼0.0583.11 ▼4.9239.09 ▼3.91
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0339.15 ▲1.4237.32 ▼6.02
Add New Post /wp-admin/post-new.php1,526 ▼022.67 ▼0.82632.70 ▼59.2153.63 ▲0.27
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.0696.25 ▼24.9844.88 ▼3.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: core, wordpress, updates

wpa-clean-updates/wpa-wordpress-updates.php 85% from 13 tests

The main PHP file in "WP Switch Clean Updates On" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpa-clean-updates.php" instead of "wpa-wordpress-updates.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
Everything looks great! No dangerous files found in this plugin6 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2186

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin