88% admail-list-builder-signup-forms

Code Review | Admail Signup Forms

WordPress plugin Admail Signup Forms scored 88% from 53 tests.

About plugin

  • Plugin page: admail-list-build...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.8.1
  • First release: Oct 26, 2019
  • Latest release: Sep 3, 2021
  • Number of updates: 28
  • Update frequency: every 24.3 days
  • Top authors: admailsupport (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 408 total downloads

Benchmarks

Plugin footprint Passed 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.11MB] [CPU: ▼268.15ms] Passed 4 tests

Analyzing server-side resources used by Admail Signup Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1944.52 ▲24.89
Dashboard /wp-admin3.15 ▲0.1047.65 ▲3.97
Posts /wp-admin/edit.php3.26 ▲0.1641.70 ▼4.72
Add New Post /wp-admin/post-new.php5.51 ▲0.0996.68 ▼1,061.81
Media Library /wp-admin/upload.php3.09 ▲0.0930.56 ▼10.05

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 234 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Admail Signup Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,675 ▲6915.81 ▲0.268.14 ▲0.0146.75 ▼1.74
Dashboard /wp-admin2,929 ▲796.08 ▲0.26140.87 ▲10.33117.96 ▲16.02
Posts /wp-admin/edit.php2,705 ▼12.71 ▲0.0164.19 ▼3.1791.60 ▼4.03
Add New Post /wp-admin/post-new.php1,855 ▲20219.07 ▲0.32353.39 ▼17.19108.05 ▼9.51
Media Library /wp-admin/upload.php1,774 ▲25.01 ▼0.09157.78 ▼4.82114.15 ▼14.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/admail-list-builder-signup-forms/admin/partials/class-admail-admin-display.php
  • 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
    • > PHP Notice
      Undefined variable: admail_atts in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php:17
    • > PHP Notice
      Undefined variable: admail_atts in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
    • > PHP Notice
      Undefined variable: admail_atts in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17
    • > PHP Notice
      Undefined variable: admail_atts in wp-content/plugins/admail-list-builder-signup-forms/public/partials/admail-public.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: admail, invite form, email marketing, admail email, contact...

admail-list-builder-signup-forms/admail.php 77% from 13 tests

"Admail Signup Forms" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Name the main plugin file the same as the plugin slug ("admail-list-builder-signup-forms.php" instead of "admail.php")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("/languages *")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin23,423 lines of code in 190 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1575,8155,50121,318
CSS816482793
Markdown32400468
PHP14166788434
JSON600281
HTML2131129

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.14
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods615.38%
▷ Public methods3282.05%
▷ Protected methods25.13%
▷ Private methods512.82%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
12 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/controls.png1.59KB1.67KB0.00%
node_modules/jquery-colorbox/example2/images/controls.png0.49KB0.57KB0.00%
node_modules/jquery-colorbox/example5/images/border.png0.14KB0.16KB0.00%
node_modules/jquery-colorbox/example5/images/loading_background.png0.13KB0.15KB0.00%
node_modules/jquery-colorbox/example4/images/border2.png0.11KB0.16KB0.00%