84% tsp-disable-auto-save

Code Review | LAPDI Disable Autosave

WordPress plugin LAPDI Disable Autosave scored84%from 54 tests.

About plugin

  • Plugin page: tsp-disable-auto-...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.6.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2013
  • Latest release: Feb 8, 2021
  • Number of updates: 27
  • Update frequency: every 102.7 days
  • Top authors: sharrondenice (96.3%)thesoftwarepeople (7.41%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by LAPDI Disable Autosave
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.82 ▼4.33
Dashboard /wp-admin3.31 ▲0.0050.35 ▼0.62
Posts /wp-admin/edit.php3.36 ▲0.0054.79 ▲0.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.23 ▲3.05
Media Library /wp-admin/upload.php3.23 ▲0.0062.44 ▲22.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by LAPDI Disable Autosave
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.54 ▼0.211.62 ▼0.2342.79 ▼4.68
Dashboard /wp-admin2,206 ▲275.85 ▼0.01100.02 ▼20.7239.94 ▼5.97
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0740.01 ▼2.6935.37 ▼6.09
Add New Post /wp-admin/post-new.php1,533 ▲1423.03 ▼0.08707.32 ▲19.7162.74 ▼1.83
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.07154.49 ▲28.2963.67 ▲14.64

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tsp-disable-auto-save/tsp-disable-auto-save.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/tsp-disable-auto-save/TSP_Easy_Dev.config.php:18
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/tsp-disable-auto-save/tsp-disable-auto-save.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'TSP_Easy_Dev_Options' not found in wp-content/plugins/tsp-disable-auto-save/TSP_Easy_Dev.extend.php:12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/tsp-disable-auto-save/tsp-disable-auto-save.php on line 14

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 on the user side

Optimizations

Plugin configuration 93% from 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
4 plugin tags: disable, the software people, revisions, autosave

tsp-disable-auto-save/tsp-disable-auto-save.php 85% from 13 tests

The principal PHP file in "LAPDI Disable Autosave" v. 1.1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 203 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected93 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3194168
Markdown113025

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected