78% godaddy-email-marketing-sign-up-forms

Code Review | GoDaddy Email Marketing

WordPress plugin GoDaddy Email Marketing scored78%from 54 tests.

About plugin

  • Plugin page: godaddy-email-mar...
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Jun 8, 2021
  • Number of updates: 54
  • Update frequency: every 40.1 days
  • Top authors: Godaddy (27.78%)jonathanbardo (27.78%)fjarrett (20.37%)willmot (16.67%)eherman24 (11.11%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30,000+ active /1,327,432 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼2.79ms] Passed 4 tests

Analyzing server-side resources used by GoDaddy Email Marketing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3256.54 ▲11.59
Dashboard /wp-admin3.63 ▲0.3255.11 ▼0.92
Posts /wp-admin/edit.php3.74 ▲0.3956.47 ▲3.62
Add New Post /wp-admin/post-new.php6.21 ▲0.3290.84 ▼21.08
Media Library /wp-admin/upload.php3.55 ▲0.3242.38 ▲7.21
GoDaddy Email Marketing /wp-admin/options-general.php?page=gem-settings3.5342.18

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
gem-settings
can_compress_scripts
theysaidso_admin_options
widget_gem-form
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by GoDaddy Email Marketing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲11813.78 ▼0.579.31 ▲7.4339.34 ▼6.91
Dashboard /wp-admin2,199 ▲225.63 ▼0.0092.16 ▼0.0438.34 ▼3.30
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0238.03 ▲0.7336.10 ▼1.23
Add New Post /wp-admin/post-new.php6,198 ▲4,67019.52 ▼3.79932.49 ▲286.4163.84 ▲23.65
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0294.64 ▼0.9844.60 ▼0.92
GoDaddy Email Marketing /wp-admin/options-general.php?page=gem-settings1,0202.1833.5652.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_gem-form

Smoke tests 50% from 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 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/godaddy-email-marketing-sign-up-forms/includes/widget.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/godaddy-email-marketing-sign-up-forms/godaddy-email-marketing.php:313

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=gem-settings
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://uk.godaddy.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

godaddy-email-marketing-sign-up-forms/godaddy-email-marketing.php 85% from 13 tests

"GoDaddy Email Marketing" version 1.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("godaddy-email-marketing-sign-up-forms.php" instead of "godaddy-email-marketing.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
No dangerous file extensions were detected1,869 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP84376521,368
JavaScript11111138327
CSS63813172
SVG2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity22.78
▷ Minimum class complexity4.00
▷ Maximum class complexity80.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods70
▷ Static methods3042.86%
▷ Public methods6592.86%
▷ Protected methods00.00%
▷ Private methods57.14%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin