78% gg-infucaptcha-recaptcha-for-infusionsoft

Code Review | GG Infucaptcha reCaptcha for Infusionsoft

WordPress plugin GG Infucaptcha reCaptcha for Infusionsoft scored 78% from 54 tests.

About plugin

  • Plugin page: gg-infucaptcha-re...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.2
  • WordPress version: 5.8.1
  • First release: Feb 5, 2015
  • Latest release: Jan 10, 2017
  • Number of updates: 12
  • Update frequency: every 82.3 days
  • Top authors: Geek Goddess (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,848 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.89MB] [CPU: ▼180.96ms] Passed 4 tests

This is a short check of server-side resources used by GG Infucaptcha reCaptcha for Infusionsoft
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1442.85 ▲20.43
Dashboard /wp-admin2.76 ▼0.2926.01 ▼26.56
Posts /wp-admin/edit.php2.76 ▼0.3523.10 ▼27.27
Add New Post /wp-admin/post-new.php2.76 ▼2.6722.25 ▼656.11
Media Library /wp-admin/upload.php2.76 ▼0.2423.56 ▼13.88
GG InfuCaptcha /wp-admin/options-general.php?page=gg-infucaptcha-plugin-settings2.7623.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for GG Infucaptcha reCaptcha for Infusionsoft
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.80 ▲0.2510.39 ▼0.0644.94 ▼5.62
Dashboard /wp-admin2,975 ▲415.96 ▼0.16148.09 ▼7.13107.26 ▼3.82
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0170.85 ▼6.9085.00 ▼8.46
Add New Post /wp-admin/post-new.php1,503 ▼7818.46 ▼1.86381.29 ▼36.23111.54 ▼7.61
Media Library /wp-admin/upload.php1,815 ▲85.01 ▼0.02164.43 ▲10.06118.20 ▼0.95
GG InfuCaptcha /wp-admin/options-general.php?page=gg-infucaptcha-plugin-settings1,1402.0876.0370.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=gg-infucaptcha-plugin-settings
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gg-infucaptcha-recaptcha-for-infusionsoft/gg-infucaptcha.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: infusionsoft, recaptcha, captcha, antispam

gg-infucaptcha-recaptcha-for-infusionsoft/gg-infucaptcha.php 92% from 13 tests

This is the main PHP file of "GG Infucaptcha reCaptcha for Infusionsoft" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gg-infucaptcha-recaptcha-for-infusionsoft.php" instead of "gg-infucaptcha.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin242 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22479166
JavaScript10076

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods250.00%
▷ Protected methods00.00%
▷ Private methods250.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
recaptcha.png1.52KB0.71KB▼ 53.72%