84% simple-revisions-delete

Code Review | Simple Revisions Delete

WordPress plugin Simple Revisions Delete scored84%from 54 tests.

About plugin

  • Plugin page: simple-revisions-...
  • Plugin version: 1.5.1
  • PHP compatiblity: 5.5.12+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Oct 24, 2022
  • Number of updates: 52
  • Update frequency: every 54.8 days
  • Top authors: briKou (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

10,000+ active /93,372 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.08MB] [CPU: ▲1.27ms] Passed 4 tests

Analyzing server-side resources used by Simple Revisions Delete
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.39 ▼2.20
Dashboard /wp-admin3.38 ▲0.0851.18 ▼1.87
Posts /wp-admin/edit.php3.43 ▲0.0853.87 ▲7.53
Add New Post /wp-admin/post-new.php5.99 ▲0.10105.66 ▲11.34
Media Library /wp-admin/upload.php3.30 ▲0.0839.18 ▲1.63

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Revisions Delete
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.35 ▼0.052.08 ▲0.4139.61 ▼5.07
Dashboard /wp-admin2,206 ▲285.63 ▼0.0792.50 ▼15.2042.64 ▲2.18
Posts /wp-admin/edit.php2,122 ▲222.02 ▲0.0042.27 ▲4.2136.30 ▲0.44
Add New Post /wp-admin/post-new.php1,553 ▲1818.33 ▼2.69617.91 ▼36.5972.30 ▲13.51
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.0298.99 ▼11.1144.40 ▼3.62

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-revisions-delete/wp-simple-revisions-delete-gutenberg.php
    • > /wp-content/plugins/simple-revisions-delete/wp-simple-revisions-delete-bulk.php
    • > /wp-content/plugins/simple-revisions-delete/wp-simple-revisions-delete-single.php
    • > /wp-content/plugins/simple-revisions-delete/wp-simple-revisions-delete.php
    • > /wp-content/plugins/simple-revisions-delete/wp-simple-revisions-delete-functions.php
    • > /wp-content/plugins/simple-revisions-delete/wp-simple-revisions-delete-once.php

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gutenberg, revisions, delete, purge, cleanup

simple-revisions-delete/wp-simple-revisions-delete.php 85% from 13 tests

Analyzing the main PHP file in "Simple Revisions Delete" version 1.5.1
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-revisions-delete.php" instead of "wp-simple-revisions-delete.php")

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
Good job! No executable or dangerous file extensions detected784 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7105137416
PO File366157198
JavaScript21418170

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions19
▷ Named functions19100.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