72% aio-cache

Code Review | AIO Cache & Performance

WordPress plugin AIO Cache & Performance scored 72% from 54 tests.

About plugin

  • Plugin page: aio-cache
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 5.8.1
  • First release: Feb 12, 2013
  • Latest release: Jun 25, 2016
  • Number of updates: 164
  • Update frequency: every 7.5 days
  • Top authors: adamsassets (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

40+ active / 14,535 total downloads

Benchmarks

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
This plugin's installer ran successfully

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

Analyzing server-side resources used by AIO Cache & Performance
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.54 ▼0.1814.47 ▼4.25
Dashboard /wp-admin3.09 ▲0.0334.99 ▼11.62
Posts /wp-admin/edit.php3.14 ▲0.0341.97 ▲0.37
Add New Post /wp-admin/post-new.php5.45 ▲0.0189.34 ▼563.85
Media Library /wp-admin/upload.php3.03 ▲0.0333.08 ▲0.90
PHP Expires Headers /wp-admin/admin.php?page=aio-cache-phpexpheaders2.9823.38
AIO Cache /wp-admin/admin.php?page=aio-cache-menu3.0029.56
PRO VERSION /wp-admin/admin.php?page=aio-cache-go-pro3.0031.31

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

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

Browser metrics Passed 4 tests

AIO Cache & Performance: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,741 ▲14515.83 ▲0.2211.38 ▲0.0348.57 ▲2.52
Dashboard /wp-admin3,001 ▲675.93 ▼0.03131.89 ▼7.56129.64 ▲19.66
Posts /wp-admin/edit.php2,778 ▲392.60 ▼0.1259.01 ▼5.9391.23 ▼13.69
Add New Post /wp-admin/post-new.php1,712 ▲4218.73 ▼0.42361.68 ▼19.24113.61 ▲1.29
Media Library /wp-admin/upload.php1,860 ▲535.03 ▼0.03124.28 ▼17.59148.60 ▲39.35
PHP Expires Headers /wp-admin/admin.php?page=aio-cache-phpexpheaders1,0962.0948.0766.96
AIO Cache /wp-admin/admin.php?page=aio-cache-menu1,0942.0949.7469.36
PRO VERSION /wp-admin/admin.php?page=aio-cache-go-pro1,1012.0651.7275.27

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
This plugin's uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=aio-cache-phpexpheaders
    • > Notice in wp-content/plugins/aio-cache/resources/cachehead/aio-cachehead.php+31
    Undefined index: phpch_value

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
Almost there! Just fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aio-cache/aio.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aio-cache/resources/cachehead/aio-cachehead.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aio-cache/resources/compression/aio-compression.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aio-cache/resources/footscripts/aio-footscripts.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=aio-cache-go-pro
    • > Network (severe)
    http://www.adamsassets.com/paypal-donate.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 57 tag instead of maximum 10
Please take inspiration from this readme.txt

aio-cache/aio.php 92% from 13 tests

The main PHP script in "AIO Cache & Performance" version 2.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("aio-cache.php" instead of "aio.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please fix the following items
  • Do not distribute dangerous files with your plugin
    • .url - Internet Shortcut in Firefox, IE, Chrome, Safari
      • wp-content/plugins/aio-cache/CLICK HERE TO DONATE.url
109 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42420109

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin