89% vgc-for-gravity-forms

Code Review | Very Good Collection Add-On

WordPress plugin Very Good Collection Add-On scored89%from 54 tests.

About plugin

  • Plugin page: vgc-for-gravity-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 14, 2021
  • Latest release: Jul 14, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wafsite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /275 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.86ms] Passed 4 tests

An overview of server-side resources used by Very Good Collection Add-On
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.24 ▼3.91
Dashboard /wp-admin3.31 ▼0.0446.73 ▼13.14
Posts /wp-admin/edit.php3.37 ▲0.0043.51 ▼7.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0082.81 ▼3.36
Media Library /wp-admin/upload.php3.24 ▲0.0032.96 ▼7.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Very Good Collection Add-On
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.44 ▲0.091.70 ▲0.1742.48 ▲0.58
Dashboard /wp-admin2,189 ▲125.49 ▼0.0981.95 ▼11.2538.37 ▼4.36
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0533.91 ▼6.0035.29 ▲1.74
Add New Post /wp-admin/post-new.php1,526 ▼023.23 ▼0.25673.63 ▲20.7455.88 ▼8.08
Media Library /wp-admin/upload.php1,397 ▼04.18 ▲0.01104.95 ▲2.1745.28 ▲0.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gravity, addon, verygoodcollection, gravityforms, payment

vgc-for-gravity-forms/very-good-collection.php 85% from 13 tests

The main PHP file in "Very Good Collection Add-On" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vgc-for-gravity-forms.php" instead of "very-good-collection.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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
Good job! No executable or dangerous file extensions detected453 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25172453

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity22.50
▷ Minimum class complexity2.00
▷ Maximum class complexity43.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin