84% pods-alternative-cache

Code Review | Pods Alternative Cache

WordPress plugin Pods Alternative Cache scored84%from 54 tests.

About plugin

  • Plugin page: pods-alternative-...
  • Plugin version: 2.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Apr 16, 2014
  • Latest release: Mar 13, 2023
  • Number of updates: 30
  • Update frequency: every 111.0 days
  • Top authors: sc0ttkclark (96.67%)Shelob9 (6.67%)

Code review

54 tests

User reviews

6 reviews

Install metrics

4,000+ active /32,245 total downloads

Benchmarks

Plugin footprint 83% 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.13MB] [CPU: ▼3.92ms] Passed 4 tests

An overview of server-side resources used by Pods Alternative Cache
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1340.95 ▲5.34
Dashboard /wp-admin3.43 ▲0.1346.40 ▼10.74
Posts /wp-admin/edit.php3.55 ▲0.1947.64 ▲3.57
Add New Post /wp-admin/post-new.php6.02 ▲0.1281.30 ▼13.83
Media Library /wp-admin/upload.php3.36 ▲0.1234.63 ▲5.92

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Pods Alternative Cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.251.68 ▲0.1343.21 ▲0.17
Dashboard /wp-admin2,198 ▲185.56 ▼0.0889.12 ▼10.9238.67 ▼4.97
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0139.90 ▼5.0134.73 ▼0.48
Add New Post /wp-admin/post-new.php1,526 ▼023.03 ▼0.08671.54 ▲47.6252.12 ▲2.86
Media Library /wp-admin/upload.php1,400 ▼34.16 ▼0.0693.67 ▼9.5341.77 ▼0.88

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Pods_Alternative_Cache_Storage' not found in wp-content/plugins/pods-alternative-cache/classes/Pods/Alternative/Cache/DB.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pods-alternative-cache/pods-alternative-cache.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Pods_Alternative_Cache_Storage' not found in wp-content/plugins/pods-alternative-cache/classes/Pods/Alternative/Cache/File.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Pods_Alternative_Cache_Storage' not found in wp-content/plugins/pods-alternative-cache/classes/Pods/Alternative/Cache/Memcached.php:6

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: cache, pods, wpengine

pods-alternative-cache/pods-alternative-cache.php 92% from 13 tests

The main PHP script in "Pods Alternative Cache" version 2.1.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Git Repository: A Git repository was detected inside this plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin874 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6329376874

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity23.60
▷ Minimum class complexity10.00
▷ Maximum class complexity52.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin