89% sliced-invoices-gravity-forms

Code Review | Sliced Invoices & Gravity Forms

WordPress plugin Sliced Invoices & Gravity Forms scored 89% from 54 tests.

About plugin

  • Plugin page: sliced-invoices-g...
  • Plugin version: 1.13.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: May 27, 2022
  • Number of updates: 60
  • Update frequency: every 38.8 days
  • Top authors: SlicedInvoices (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 12,319 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.00MB] [CPU: ▼8.90ms] Passed 4 tests

A check of server-side resources used by Sliced Invoices & Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.64 ▼1.16
Dashboard /wp-admin3.31 ▲0.0150.85 ▲0.27
Posts /wp-admin/edit.php3.36 ▲0.0045.84 ▼16.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.79 ▼17.95
Media Library /wp-admin/upload.php3.23 ▲0.0037.09 ▲5.03

Server storage [IO: ▲0.36MB] [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: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Sliced Invoices & Gravity Forms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.28 ▼1.101.90 ▲0.0547.33 ▼2.95
Dashboard /wp-admin2,225 ▲434.88 ▼1.13118.97 ▼3.6052.33 ▲3.38
Posts /wp-admin/edit.php2,110 ▲182.00 ▼0.0539.54 ▼9.4638.16 ▼2.92
Add New Post /wp-admin/post-new.php1,538 ▲523.39 ▲0.07714.72 ▲21.0852.12 ▼14.82
Media Library /wp-admin/upload.php1,404 ▲164.24 ▲0.07124.53 ▲5.4753.46 ▲2.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4 in sliced-invoices-gravity-forms/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

sliced-invoices-gravity-forms/sliced-invoices-gravity-forms.php Passed 13 tests

The entry point to "Sliced Invoices & Gravity Forms" version 1.13.1 is a PHP file that has certain tags in its header comment area
127 characters long description:
Create forms that allow users to submit a quote or estimate request. Requirements: The Sliced Invoices Plugin and Gravity Forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin664 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3105109633
JSON10017
JavaScript15314

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity55.50
▷ Minimum class complexity2.00
▷ Maximum class complexity109.00
Average method complexity7.41
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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