83% getresponse-for-formcraft

Code Review | GetResponse Add-On for FormCraft

WordPress plugin GetResponse Add-On for FormCraft scored83%from 54 tests.

About plugin

  • Plugin page: getresponse-for-f...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.9
  • WordPress version: 6.3.1
  • First release: Jun 3, 2015
  • Latest release: Mar 2, 2022
  • Number of updates: 5
  • Update frequency: every 493.0 days
  • Top authors: nish@ncrafts.net (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by GetResponse Add-On for FormCraft
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.71 ▼6.85
Dashboard /wp-admin3.31 ▲0.0140.10 ▼11.76
Posts /wp-admin/edit.php3.36 ▲0.0144.61 ▼3.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.88 ▼19.09
Media Library /wp-admin/upload.php3.24 ▲0.0135.28 ▲0.98

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for GetResponse Add-On for FormCraft
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.091.72 ▼0.0935.91 ▼9.36
Dashboard /wp-admin2,206 ▲214.87 ▲0.00111.99 ▲7.9648.41 ▲7.81
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0540.54 ▲4.0236.31 ▼0.83
Add New Post /wp-admin/post-new.php1,533 ▼023.07 ▼0.31664.54 ▼8.7869.59 ▲17.44
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0497.28 ▼4.4443.92 ▲0.75

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
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • 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
Everything seems fine, however 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 take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getresponse-for-formcraft/formcraft-getresponse.php:19
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/getresponse-for-formcraft/formcraft-getresponse.php on line 15
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/getresponse-for-formcraft/formcraft-getresponse.php on line 16
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/getresponse-for-formcraft/formcraft-getresponse.php on line 14
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/getresponse-for-formcraft/formcraft-getresponse.php on line 17

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)
There were no browser issues found

Optimizations

Plugin configuration 90% 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:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt might help

getresponse-for-formcraft/formcraft-getresponse.php 85% from 13 tests

The main PHP file in "GetResponse Add-On for FormCraft" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("getresponse-for-formcraft.php" instead of "formcraft-getresponse.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected798 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3111468685
JavaScript10085
CSS10028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity19.67
▷ Minimum class complexity9.00
▷ Maximum class complexity41.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods100
▷ Static methods00.00%
▷ Public methods9292.00%
▷ Protected methods00.00%
▷ Private methods88.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

Often times overlooked, PNG files can occupy unnecessary space in 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
assets/logo.png3.68KB2.69KB▼ 27.02%