84% proisp-vcache

Code Review | Performance Cache - PROISP

WordPress plugin Performance Cache - PROISP scored84%from 54 tests.

About plugin

  • Plugin page: proisp-vcache
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: May 8, 2023
  • Latest release: May 8, 2023
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: grouponewp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /103 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▲8.97ms] Passed 4 tests

An overview of server-side resources used by Performance Cache - PROISP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5252.93 ▲10.92
Dashboard /wp-admin3.84 ▲0.5466.67 ▲13.42
Posts /wp-admin/edit.php3.94 ▲0.5952.28 ▼0.26
Add New Post /wp-admin/post-new.php6.44 ▲0.56158.11 ▲53.76
Media Library /wp-admin/upload.php3.70 ▲0.4745.27 ▲11.79

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 13 new options
New WordPress options
proisp_varnish_caching_cookie
widget_theysaidso_widget
proisp_varnish_caching_ttl
db_upgraded
widget_recent-comments
theysaidso_admin_options
proisp_varnish_caching_homepage_ttl
proisp_varnish_caching_enable
widget_recent-posts
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Performance Cache - PROISP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲12013.34 ▼1.301.87 ▲0.0346.01 ▼2.20
Dashboard /wp-admin2,261 ▲734.85 ▼0.03118.52 ▲5.7747.19 ▲1.83
Posts /wp-admin/edit.php2,141 ▲521.97 ▲0.0139.52 ▼1.4635.98 ▼2.51
Add New Post /wp-admin/post-new.php1,552 ▲3323.37 ▲0.16708.90 ▲42.2954.94 ▼6.28
Media Library /wp-admin/upload.php1,440 ▲554.21 ▲0.00118.70 ▲12.3054.58 ▲8.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • can_compress_scripts
    • proisp_varnish_caching_cookie
    • proisp_varnish_caching_ips
    • db_upgraded
    • widget_theysaidso_widget
    • proisp_varnish_caching_enable
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • proisp_varnish_caching_debug

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PROISP_VCaching' not found in wp-content/plugins/proisp-vcache/proisp-addons/proisp-inc.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PROISP_VCaching_Config' not found in wp-content/plugins/proisp-vcache/proisp-addons/templates/cache-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/proisp-vcache/vcaching.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: proisp-vcache, performance cache, purge, performance cache proisp, varnish...

proisp-vcache/vcaching.php 85% from 13 tests

The main PHP file in "Performance Cache - PROISP" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("proisp-vcache.php" instead of "vcaching.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin2,916 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP62583341,413
CSS236291,085
JavaScript63514354
SVG60164

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity72.00
▷ Minimum class complexity1.00
▷ Maximum class complexity144.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods77
▷ Static methods11.30%
▷ Public methods6888.31%
▷ Protected methods45.19%
▷ Private methods56.49%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants16
▷ Global constants425.00%
▷ Class constants1275.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png1.33KB1.31KB▼ 1.68%