84% autover

Code Review | Autover

WordPress plugin Autover scored 84% from 54 tests.

About plugin

  • Plugin page: autover
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2013
  • Latest release: May 22, 2019
  • Number of updates: 38
  • Update frequency: every 59.5 days
  • Top authors: PressLabs (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 6,775 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Autover
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.51 ▼4.36
Dashboard /wp-admin3.31 ▲0.0144.99 ▼7.43
Posts /wp-admin/edit.php3.36 ▲0.0045.61 ▼0.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.85 ▼15.61
Media Library /wp-admin/upload.php3.23 ▲0.0035.90 ▼0.64

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Autover
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.89 ▲0.561.87 ▲0.1346.46 ▼0.38
Dashboard /wp-admin2,206 ▲184.85 ▼1.03108.50 ▲8.1939.33 ▼6.02
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0439.88 ▲0.4835.55 ▲0.24
Add New Post /wp-admin/post-new.php1,533 ▲1923.16 ▲5.71656.88 ▲8.7161.14 ▲5.40
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.12102.26 ▼7.9445.86 ▼0.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/autover/autover.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt is a good inspiration

autover/autover.php Passed 13 tests

The entry point to "Autover" version 1.5 is a PHP file that has certain tags in its header comment area
78 characters long description:
Automatically version your CSS and JS files enqueued through the Wordpress API

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin46 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112843
Markdown1103

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.95
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
2 PNG files occupy 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/screenshot-1.png96.87KB27.91KB▼ 71.19%
img/screenshot-2.png99.65KB28.71KB▼ 71.19%