90% simple-revision-cleaner

Code Review | Simple Revision Cleaner

WordPress plugin Simple Revision Cleaner scored90%from 54 tests.

About plugin

  • Plugin page: simple-revision-c...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Aug 21, 2018
  • Latest release: Nov 11, 2019
  • Number of updates: 22
  • Update frequency: every 20.3 days
  • Top authors: colomet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /837 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.03MB] [CPU: ▼2.57ms] Passed 4 tests

Analyzing server-side resources used by Simple Revision Cleaner
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.28 ▲0.66
Dashboard /wp-admin3.34 ▲0.0353.43 ▲3.98
Posts /wp-admin/edit.php3.39 ▲0.0348.88 ▲1.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.40 ▼15.42
Media Library /wp-admin/upload.php3.26 ▲0.0338.74 ▲3.17

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Revision Cleaner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.20 ▼0.352.46 ▲0.8844.17 ▼1.87
Dashboard /wp-admin2,198 ▲215.63 ▼0.0394.35 ▲4.0039.06 ▼6.65
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0433.86 ▼8.5433.93 ▼1.27
Add New Post /wp-admin/post-new.php1,529 ▲123.30 ▲0.30615.64 ▲16.8851.36 ▲2.80
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.04105.18 ▲7.5143.69 ▲1.18

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
7 plugin tags: wordpress plugin, delete, revisions, multisite, cleaning...

simple-revision-cleaner/simple-revision-cleaner.php Passed 13 tests

The principal PHP file in "Simple Revision Cleaner" v. 1.1.1 is loaded by WordPress automatically on each request
104 characters long description:
The plugin aim is to provide possibility for automatic deletion of old revisions on WordPress multisite.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP348119137

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected