89% wp-core-update-cleaner

Code Review | WP Core Update Cleaner

WordPress plugin WP Core Update Cleaner scored89%from 54 tests.

About plugin

  • Plugin page: wp-core-update-cl...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: Dec 22, 2014
  • Latest release: Aug 31, 2023
  • Number of updates: 30
  • Update frequency: every 105.8 days
  • Top authors: Upperdog (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /6,648 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by WP Core Update Cleaner
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.08 ▼0.99
Dashboard /wp-admin3.32 ▲0.0148.18 ▼9.17
Posts /wp-admin/edit.php3.37 ▲0.0145.09 ▼11.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.73 ▼15.11
Media Library /wp-admin/upload.php3.24 ▲0.0137.15 ▼3.59

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • Illegal file modification found: 3 files (0.00KB) outside of "wp-content/plugins/wp-core-update-cleaner/" and "wp-content/uploads/"
    • (deleted) wp-admin/install.php
    • (deleted) wp-config-sample.php
    • (deleted) readme.html
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Core Update Cleaner
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.38 ▲0.202.23 ▲0.5350.22 ▲7.75
Dashboard /wp-admin2,198 ▲245.59 ▼0.1789.89 ▼7.3842.63 ▼0.23
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0439.44 ▲3.7731.20 ▼4.87
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.03679.81 ▲53.6160.59 ▲2.84
Media Library /wp-admin/upload.php1,394 ▼64.18 ▼0.0294.69 ▼12.4644.26 ▼0.40

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: update, core, upgrade

wp-core-update-cleaner/wp-core-update-cleaner.php 92% from 13 tests

The principal PHP file in "WP Core Update Cleaner" v. 1.2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1154452
PO File131226

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin