84% gravity-forms-tave-add-on

Code Review | Gravity Forms Táve add-on

WordPress plugin Gravity Forms Táve add-on scored84%from 54 tests.

About plugin

  • Plugin page: gravity-forms-tav...
  • Plugin version: 2015.03.06
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 21, 2014
  • Latest release: Dec 12, 2015
  • Number of updates: 20
  • Update frequency: every 30.0 days
  • Top authors: rowellr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,341 total downloads

Benchmarks

Plugin footprint 83% 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.15MB] [CPU: ▼8.22ms] Passed 4 tests

Analyzing server-side resources used by Gravity Forms Táve add-on
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.85 ▼4.63
Dashboard /wp-admin3.45 ▲0.1548.42 ▼7.74
Posts /wp-admin/edit.php3.57 ▲0.2151.09 ▼2.67
Add New Post /wp-admin/post-new.php6.04 ▲0.1590.51 ▼17.84
Media Library /wp-admin/upload.php3.38 ▲0.1537.95 ▲0.11

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Forms Táve add-on
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▼0.391.87 ▲0.1041.10 ▼5.31
Dashboard /wp-admin2,189 ▲95.55 ▼0.1286.92 ▼5.0040.46 ▼3.71
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0434.59 ▼0.6732.96 ▼2.69
Add New Post /wp-admin/post-new.php1,554 ▲2018.32 ▼4.88654.22 ▲30.5566.93 ▲1.75
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0099.03 ▼16.2744.75 ▼2.34

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-tave-add-on/tave.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

gravity-forms-tave-add-on/tave.php 92% from 13 tests

"Gravity Forms Táve add-on" version 2015.03.06's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("gravity-forms-tave-add-on.php" instead of "tave.php")

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 plugin820 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP217486820

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity52.00
▷ Minimum class complexity14.00
▷ Maximum class complexity90.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods40
▷ Static methods3895.00%
▷ Public methods2665.00%
▷ Protected methods410.00%
▷ Private methods1025.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/tick.png0.52KB0.52KB0.00%
images/stop.png0.68KB0.78KB0.00%
images/active0.png0.65KB0.61KB▼ 5.56%
images/page_white_world.png0.72KB0.75KB0.00%
images/error.png0.65KB0.68KB0.00%