10% wpbase-cache

Code Review | WPBase Cache

WordPress plugin WPBase Cache scored 10% from 54 tests.

About plugin

  • Plugin page: wpbase-cache
  • Plugin version: 5.5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Jul 16, 2013
  • Latest release: Mar 16, 2022
  • Number of updates: 56
  • Update frequency: every 56.5 days
  • Top authors: baseapp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active / 261,022 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/wpbase-cache/wpbase-cache-admin.php+223
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.06MB] [CPU: ▲1.80ms] Passed 4 tests

A check of server-side resources used by WPBase Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0546.97 ▲10.27
Dashboard /wp-admin3.36 ▲0.0646.31 ▲0.21
Posts /wp-admin/edit.php3.42 ▲0.0646.18 ▼1.43
Add New Post /wp-admin/post-new.php5.96 ▲0.07120.30 ▲34.70
Media Library /wp-admin/upload.php3.29 ▲0.0633.22 ▼1.85
WPBase /wp-admin/options-general.php?page=wpbasecache3.2534.42

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
wpbase_cache_options
wpbase_check_site
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
wpbase_req_cache_new

Browser metrics Passed 4 tests

A check of browser resources used by WPBase Cache
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲2914.74 ▲0.001.60 ▼0.0443.51 ▼0.82
Dashboard /wp-admin2,221 ▲155.84 ▲0.9996.19 ▼3.2038.02 ▼2.52
Posts /wp-admin/edit.php2,107 ▲212.05 ▲0.0835.77 ▲0.7736.91 ▲6.34
Add New Post /wp-admin/post-new.php1,539 ▲523.26 ▲0.04624.41 ▼35.3048.45 ▼10.13
Media Library /wp-admin/upload.php1,406 ▲184.23 ▲0.0394.99 ▼5.9841.27 ▼7.72
WPBase /wp-admin/options-general.php?page=wpbasecache8242.0526.6629.64

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
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • theysaidso_admin_options
    • wpbase_req_cache_new
    • db_upgraded
    • wpbase_cache_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • wpbase_check_site
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 output text when accessed directly:
    • > /wp-content/plugins/wpbase-cache/includes/admin-page.php
    • > /wp-content/plugins/wpbase-cache/views.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wpbase-cache/includes/diagnostics.php:13
    • > PHP Notice
      Undefined index: post_id in wp-content/plugins/wpbase-cache/views.php on line 2
    • > PHP Notice
      Undefined index: view_meta in wp-content/plugins/wpbase-cache/views.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/wpbase-cache/includes/wp-cli-commands.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpbase-cache/wpbase-cache-admin.php:221
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wpbase-cache/includes/servers-list.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

wpbase-cache/wpbase-cache.php Passed 13 tests

"WPBase Cache" version 5.5.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
121 characters long description:
Custom WordPress Caching plugin for WPOven Hosted Sites which uses all caches on varnish, nginx, php-fpm stack and Redis.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin11,207 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP122,9037,31011,173
CSS27034

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity5.48
▷ Minimum class complexity1.00
▷ Maximum class complexity287.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces22
Interfaces25
Traits0
Classes253
▷ Abstract classes103.95%
▷ Concrete classes24396.05%
▷ Final classes10.41%
Methods1,023
▷ Static methods262.54%
▷ Public methods77275.46%
▷ Protected methods21521.02%
▷ Private methods363.52%
Functions47
▷ Named functions2757.45%
▷ Anonymous functions2042.55%
Constants36
▷ Global constants1130.56%
▷ Class constants2569.44%
▷ Public constants25100.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 were not PNG files found in your plugin