74% change-autosave-interval

Code Review | Change Autosave Time

WordPress plugin Change Autosave Time scored74%from 54 tests.

About plugin

  • Plugin page: change-autosave-i...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2019
  • Latest release: Feb 23, 2023
  • Number of updates: 12
  • Update frequency: every 97.9 days
  • Top authors: carlosmr96 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,037 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼36.32ms] Passed 4 tests

A check of server-side resources used by Change Autosave Time
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.99 ▼4.92
Dashboard /wp-admin3.04 ▼0.3025.47 ▼38.85
Posts /wp-admin/edit.php3.04 ▼0.3127.25 ▼22.82
Add New Post /wp-admin/post-new.php3.04 ▼2.8423.72 ▼73.98
Media Library /wp-admin/upload.php3.04 ▼0.1924.12 ▼9.64

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Change Autosave Time
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.19 ▼1.404.26 ▲2.5838.14 ▼7.89
Dashboard /wp-admin2,206 ▲214.87 ▼0.97109.62 ▲6.8237.68 ▼5.13
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0740.03 ▲2.1434.27 ▲2.13
Add New Post /wp-admin/post-new.php1,528 ▼518.55 ▼4.52624.48 ▼44.2757.91 ▼3.15
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0294.48 ▼15.8241.49 ▼5.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/change-autosave-interval/change-autosave-interval.php+28
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-autosave-interval/change-autosave-interval.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: content, auto-save, autosave, time

change-autosave-interval/change-autosave-interval.php 92% from 13 tests

The main file in "Change Autosave Time" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

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
Success! There were no dangerous files found in this plugin115 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File2121274
PHP222341

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.PNG5.46KB3.66KB▼ 32.95%
assets/screenshot-1.PNG21.96KB11.21KB▼ 48.98%