74% spark-gf-failed-submissions

Code Review | Spark GF Failed Submissions

WordPress plugin Spark GF Failed Submissions scored 74% from 54 tests.

About plugin

  • Plugin page: spark-gf-failed-s...
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2018
  • Latest release: Jul 19, 2023
  • Number of updates: 40
  • Update frequency: every 44.4 days
  • Top authors: markparnell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,871 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▼2.06ms] Passed 4 tests

An overview of server-side resources used by Spark GF Failed Submissions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2240.92 ▲5.92
Dashboard /wp-admin3.52 ▲0.2143.98 ▼11.33
Posts /wp-admin/edit.php3.63 ▲0.2755.68 ▲7.89
Add New Post /wp-admin/post-new.php6.10 ▲0.2194.84 ▼2.37
Media Library /wp-admin/upload.php3.44 ▲0.2137.77 ▼0.47

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 26 new files
Database: 2 new tables, 7 new options
New tables
wp_spark_gf_failed_submissions
wp_spark_gf_failed_submissions_fields
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
spark_gf_failed_submissions_version

Browser metrics Passed 4 tests

An overview of browser requirements for Spark GF Failed Submissions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.111.85 ▲0.1741.30 ▼0.36
Dashboard /wp-admin2,206 ▲184.87 ▼0.99113.57 ▲2.7446.66 ▼2.15
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0440.28 ▲1.1437.11 ▲3.03
Add New Post /wp-admin/post-new.php1,537 ▼723.15 ▲4.74592.12 ▼91.8150.33 ▼1.00
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.06107.44 ▼1.5946.55 ▼4.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_spark_gf_failed_submissions_fields
    • wp_spark_gf_failed_submissions
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • spark_gf_failed_submissions_version
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/spark-gf-failed-submissions/public/partials/spark-gf-failed-submissions-public-display.php
    • > /wp-content/plugins/spark-gf-failed-submissions/admin/partials/spark-gf-failed-submissions-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: validation, logging, failed submissions, forms, gravity forms...

spark-gf-failed-submissions/spark-gf-failed-submissions.php Passed 13 tests

The main file in "Spark GF Failed Submissions" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
112 characters long description:
Track failed form submissions and get notified when they reach a customisable threshold. Requires Gravity Forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,201 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP141646721,195
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.33
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods66
▷ Static methods1522.73%
▷ Public methods4263.64%
▷ Protected methods00.00%
▷ Private methods2436.36%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants2
▷ Global constants2100.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