78% aruba-hispeed-cache

Code Review | Aruba HiSpeed Cache

WordPress plugin Aruba HiSpeed Cache scored78%from 54 tests.

About plugin

  • Plugin page: aruba-hispeed-cache
  • Plugin version: 2.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Mar 14, 2022
  • Latest release: Oct 5, 2023
  • Number of updates: 86
  • Update frequency: every 6.7 days
  • Top authors: arubadev (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90,000+ active /209,225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.84MB] [CPU: ▲0.44ms] Passed 4 tests

This is a short check of server-side resources used by Aruba HiSpeed Cache
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.32 ▲0.8645.16 ▲1.23
Dashboard /wp-admin4.15 ▲0.8153.46 ▼2.61
Posts /wp-admin/edit.php4.20 ▲0.8560.96 ▲15.21
Add New Post /wp-admin/post-new.php6.75 ▲0.8696.30 ▼7.90
Media Library /wp-admin/upload.php4.08 ▲0.8546.08 ▲11.04
Aruba HiSpeed Cache /wp-admin/options-general.php?page=aruba-hispeed-cache4.0879.08

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aruba HiSpeed Cache
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11313.21 ▼1.121.57 ▼0.7041.15 ▼1.45
Dashboard /wp-admin2,251 ▲604.88 ▼0.99101.42 ▼4.8039.05 ▼3.04
Posts /wp-admin/edit.php2,130 ▲412.02 ▼0.0439.83 ▼1.0035.81 ▼3.80
Add New Post /wp-admin/post-new.php1,566 ▲4318.09 ▼5.02634.68 ▲41.2555.46 ▲3.14
Media Library /wp-admin/upload.php1,433 ▲454.24 ▼0.0799.87 ▲4.5143.22 ▲1.61
Aruba HiSpeed Cache /wp-admin/options-general.php?page=aruba-hispeed-cache1,1138.21181.9747.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/aruba-hispeed-cache/app/views/admin/partials/admin-tab-speedTest.php
    • > /wp-content/plugins/aruba-hispeed-cache/app/views/admin/partials/admin-tab-custom.php
  • 39× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Trait 'ArubaSPA\\HiSpeedCache\\Traits\\Instance' not found in wp-content/plugins/aruba-hispeed-cache/app/src/Admin/SiteHealth.php on line 24
    • > PHP Fatal error
      Trait 'ArubaSPA\\HiSpeedCache\\Traits\\HasContainer' not found in wp-content/plugins/aruba-hispeed-cache/app/src/Events/AbstractEvents.php on line 25
    • > PHP Fatal error
      Uncaught Error: Class 'ArubaSPA\\HiSpeedCache\\Events\\AbstractEvents' not found in wp-content/plugins/aruba-hispeed-cache/app/src/Events/Deferred/PurgeProxyCacheInDeferredMode.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'ArubaSPA\\HiSpeedCache\\Events\\Plugins\\AbstractPluginEvent' not found in wp-content/plugins/aruba-hispeed-cache/app/src/Events/Plugins/PurgeProxyCacheOnActivatedPlugin.php:39
    • > PHP Fatal error
      Trait 'ArubaSPA\\HiSpeedCache\\Traits\\Instance' not found in wp-content/plugins/aruba-hispeed-cache/app/src/Admin/AdminNotice.php on line 25
    • > PHP Fatal error
      Uncaught Error: Class 'ArubaSPA\\HiSpeedCache\\Events\\AbstractEvents' not found in wp-content/plugins/aruba-hispeed-cache/app/src/Events/Term/PurgeProxyCacheOnDeleteTerm.php:37
    • > PHP Fatal error
      Trait 'ArubaSPA\\HiSpeedCache\\Traits\\Instance' not found in wp-content/plugins/aruba-hispeed-cache/app/src/CacheWarmer/Ajax/CacheWarmer.php on line 26
    • > PHP Fatal error
      Trait 'ArubaSPA\\HiSpeedCache\\Traits\\Instance' not found in wp-content/plugins/aruba-hispeed-cache/app/src/Core/Requirements.php on line 27
    • > PHP Fatal error
      Uncaught Error: Class 'ArubaSPA\\HiSpeedCache\\Events\\AbstractEvents' not found in wp-content/plugins/aruba-hispeed-cache/app/src/Events/Term/PurgeProxyCacheOnEditTerm.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'ArubaSPA\\HiSpeedCache\\Events\\AbstractEvents' not found in wp-content/plugins/aruba-hispeed-cache/app/src/Events/BulkActionManager.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: pagespeed, cache, optimize, caching, wp cache...

aruba-hispeed-cache/aruba-hispeed-cache.php 85% from 13 tests

The main file in "Aruba HiSpeed Cache" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

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
Everything looks great! No dangerous files found in this plugin4,141 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PHP631,1383,5893,937
JavaScript3233143
CSS312061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.37
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces24
Interfaces0
Traits2
Classes44
▷ Abstract classes36.82%
▷ Concrete classes4193.18%
▷ Final classes49.76%
Methods294
▷ Static methods279.18%
▷ Public methods27493.20%
▷ Protected methods41.36%
▷ Private methods165.44%
Functions26
▷ Named functions1453.85%
▷ Anonymous functions1246.15%
Constants25
▷ Global constants00.00%
▷ Class constants25100.00%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
app/assets/imgs/icon-256x256.png55.21KB30.81KB▼ 44.20%