84% w3tc-auto-pilot

Code Review | W3TC Auto Pilot

WordPress plugin W3TC Auto Pilot scored84%from 54 tests.

About plugin

  • Plugin page: w3tc-auto-pilot
  • Plugin version: 1.1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.5.0
  • WordPress version: 6.3.1
  • First release: May 29, 2015
  • Latest release: Feb 24, 2016
  • Number of updates: 47
  • Update frequency: every 5.8 days
  • Top authors: Cybr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,900 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.57ms] Passed 4 tests

A check of server-side resources used by W3TC Auto Pilot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.00 ▲3.89
Dashboard /wp-admin3.36 ▲0.0642.44 ▼6.04
Posts /wp-admin/edit.php3.47 ▲0.1244.19 ▼0.09
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.20 ▼10.76
Media Library /wp-admin/upload.php3.28 ▲0.0532.55 ▼1.38

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

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

Browser metrics Passed 4 tests

A check of browser resources used by W3TC Auto Pilot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.71 ▼0.662.00 ▲0.0144.20 ▲4.61
Dashboard /wp-admin2,203 ▲115.80 ▲0.83101.00 ▼11.1537.16 ▼6.36
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0535.70 ▼3.0732.09 ▲0.12
Add New Post /wp-admin/post-new.php1,547 ▲1018.32 ▼4.90600.17 ▼109.0166.33 ▲16.70
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0196.99 ▼9.6344.76 ▲0.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/w3tc-auto-pilot/w3tc-auto-pilot.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% 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: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt might help

w3tc-auto-pilot/w3tc-auto-pilot.php 92% from 13 tests

"W3TC Auto Pilot" version 1.1.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 208 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 detected260 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1107233260

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.52
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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