10% tw-disable-revisions

Code Review | TW Disable Revisions

WordPress plugin TW Disable Revisions scored10%from 54 tests.

About plugin

  • Plugin page: tw-disable-revisions
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 22, 2012
  • Latest release: Nov 22, 2012
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: tweetysha (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /2,917 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/tw-disable-revisions/tw-disable-revisions.php+41
    Constant WP_POST_REVISIONS already defined

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

Analyzing server-side resources used by TW Disable Revisions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.99 ▼3.73
Dashboard /wp-admin3.31 ▲0.0155.76 ▲4.46
Posts /wp-admin/edit.php3.36 ▲0.0148.33 ▼1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.00105.32 ▼1.20
Media Library /wp-admin/upload.php3.23 ▲0.0136.79 ▲1.89

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

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

Browser metrics Passed 4 tests

A check of browser resources used by TW Disable Revisions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.30 ▼0.082.01 ▲0.2544.19 ▲2.40
Dashboard /wp-admin2,192 ▲185.55 ▼0.1389.24 ▼1.5843.17 ▼2.10
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0235.62 ▼3.4135.26 ▼1.75
Add New Post /wp-admin/post-new.php1,525 ▼617.45 ▼5.70614.01 ▲0.8654.75 ▲7.13
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.06101.73 ▼0.7242.47 ▼3.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/tw-disable-revisions/tw-disable-revisions.php:44

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were no plugin tags found

tw-disable-revisions/tw-disable-revisions.php 92% from 13 tests

The main PHP script in "TW Disable Revisions" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 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
There were no executable files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171922

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin