89% is-varnish-working

Code Review | Is Varnish Working?

WordPress plugin Is Varnish Working? scored89%from 54 tests.

About plugin

  • Plugin page: is-varnish-working
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Jun 28, 2021
  • Latest release: Jun 30, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: oliverrrwhysall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.95ms] Passed 4 tests

An overview of server-side resources used by Is Varnish Working?
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.33 ▼1.72
Dashboard /wp-admin3.34 ▲0.0349.85 ▼3.62
Posts /wp-admin/edit.php3.39 ▲0.0351.59 ▲2.05
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.30 ▼4.51
Media Library /wp-admin/upload.php3.26 ▲0.0341.11 ▲4.54
Is Varnish Working? /wp-admin/options-general.php?page=is-varnish-working3.2335.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Is Varnish Working?: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3513.24 ▼1.161.94 ▼0.4143.70 ▼7.18
Dashboard /wp-admin2,224 ▲244.85 ▼0.97113.91 ▼7.0742.75 ▼1.48
Posts /wp-admin/edit.php2,109 ▲121.99 ▼0.0141.31 ▲2.1137.88 ▼1.86
Add New Post /wp-admin/post-new.php1,547 ▲222.89 ▼0.26651.14 ▼50.2379.65 ▲20.52
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.16113.04 ▲2.6048.29 ▼0.53
Is Varnish Working? /wp-admin/options-general.php?page=is-varnish-working9391.8329.1244.42

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin tags were not defined
  • Contributors: Plugin contributors not specified
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === is-varnish-working === )
You can take inspiration from this readme.txt

is-varnish-working/is-varnish-working.php 92% from 13 tests

The principal PHP file in "Is Varnish Working?" v. 1.0.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected205 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23020205

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin