84% vendi-cache

Code Review | Vendi Cache

WordPress plugin Vendi Cache scored 84% from 54 tests.

About plugin

  • Plugin page: vendi-cache
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7.0
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Jan 3, 2017
  • Number of updates: 20
  • Update frequency: every 3.6 days
  • Top authors: chris@vendiadvertising.com (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

300+ active / 9,324 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.40MB] [CPU: ▼2.18ms] Passed 4 tests

Analyzing server-side resources used by Vendi Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3539.21 ▼3.58
Dashboard /wp-admin3.77 ▲0.4649.40 ▼1.36
Posts /wp-admin/edit.php3.82 ▲0.4651.77 ▲3.00
Add New Post /wp-admin/post-new.php6.29 ▲0.4094.22 ▼6.79
Media Library /wp-admin/upload.php3.63 ▲0.4038.74 ▲3.39
Vendi Cache /wp-admin/options-general.php?page=vendi-cache3.6333.85

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
vendiWordPressCachingActivated
can_compress_scripts
widget_theysaidso_widget
vendi_cache_plugin_act_error
db_upgraded
vendi_cache_version
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vendi Cache
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.30 ▼1.064.28 ▲2.4439.29 ▼3.44
Dashboard /wp-admin2,218 ▲304.91 ▼0.98110.90 ▲9.0241.43 ▲0.00
Posts /wp-admin/edit.php2,101 ▲122.03 ▲0.0440.00 ▼0.9535.36 ▼2.87
Add New Post /wp-admin/post-new.php1,545 ▲3118.47 ▲0.74601.02 ▼45.4748.14 ▲5.05
Media Library /wp-admin/upload.php1,397 ▲64.21 ▲0.0395.18 ▼5.9143.92 ▼0.20
Vendi Cache /wp-admin/options-general.php?page=vendi-cache1,0721.8731.7531.09

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • vendi_cache_plugin_act_error
    • can_compress_scripts
    • theysaidso_admin_options
    • vendiWordPressCachingActivated
    • vendi_cache_version
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Vendi\\Cache\\cache_settings' not found in wp-content/plugins/vendi-cache/admin/vendi-cache.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/vendi-cache/vendi-cache.php:21
    • > PHP Warning
      Use of undefined constant VENDI_CACHE_SUPPORT_MU - assumed 'VENDI_CACHE_SUPPORT_MU' (this will throw an Error in a future version of PHP) in wp-content/plugins/vendi-cache/admin/vendi-cache.php on line 7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: caching, disk cache, disk caching, performance, cache...

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

The main PHP file in "Vendi Cache" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Disk-based page and post cache. (Formerly Wordfence Falcon Cache)

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
Everything looks great! No dangerous files found in this plugin2,546 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP123043092,090
JavaScript51136328
CSS21617128

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity33.22
▷ Minimum class complexity1.00
▷ Maximum class complexity129.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods117
▷ Static methods9379.49%
▷ Public methods11497.44%
▷ Protected methods00.00%
▷ Private methods32.56%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants34
▷ Global constants2058.82%
▷ Class constants1441.18%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icons/magnifier.png0.60KB0.60KB0.00%
images/icons/arrow_refresh.png0.67KB0.72KB0.00%
images/loading_background.png0.15KB0.15KB▼ 0.64%
images/icons/error128.png12.26KB5.03KB▼ 59.02%
images/icons/email_go.png0.74KB0.83KB0.00%