99% auto-save-off

Code Review | Auto Save Off

WordPress plugin Auto Save Off scored 99% from 54 tests.

About plugin

  • Plugin page: auto-save-off
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.5.3
  • WordPress version: 5.8.1
  • First release: Aug 4, 2016
  • Latest release: Aug 4, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: leobaiano (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 1,294 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.76ms] Passed 4 tests

An overview of server-side resources used by Auto Save Off
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0529.51 ▼3.42
Dashboard /wp-admin3.10 ▲0.0442.40 ▲1.66
Posts /wp-admin/edit.php3.15 ▲0.0446.16 ▲1.79
Add New Post /wp-admin/post-new.php5.46 ▲0.0396.61 ▼555.64
Media Library /wp-admin/upload.php3.04 ▲0.0332.39 ▼5.64

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Auto Save Off
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,793 ▲19716.30 ▲0.7513.89 ▲4.8247.33 ▲1.74
Dashboard /wp-admin2,967 ▲366.13 ▲0.19133.66 ▼4.89118.42 ▲5.58
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0064.22 ▲1.3087.17 ▼0.62
Add New Post /wp-admin/post-new.php1,672 ▼018.78 ▲0.04375.21 ▲19.02117.43 ▲7.58
Media Library /wp-admin/upload.php1,822 ▲125.01 ▼0.01148.26 ▼4.12120.41 ▼3.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: save post, no save post, auto save off

auto-save-off/autosave-off.php 85% from 13 tests

The main PHP file in "Auto Save Off" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("auto-save-off.php" instead of "autosave-off.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin162 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin