68% email-subscribers-advanced-form

Code Review | Email Subscribers - Group Selector

WordPress plugin Email Subscribers - Group Selector scored68%from 54 tests.

About plugin

  • Plugin page: email-subscribers...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.6
  • WordPress version: 6.3.1
  • First release: Sep 26, 2015
  • Latest release: Mar 1, 2019
  • Number of updates: 43
  • Update frequency: every 29.1 days
  • Top authors: storeapps (76.74%)Icegram (16.28%)gopi_plus (11.63%)

Code review

54 tests

User reviews

10 reviews

Install metrics

500+ active /19,369 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲0.04ms] Passed 4 tests

Server-side resources used by Email Subscribers - Group Selector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1435.21 ▼2.41
Dashboard /wp-admin3.44 ▲0.1344.83 ▼0.50
Posts /wp-admin/edit.php3.55 ▲0.1947.77 ▲1.88
Add New Post /wp-admin/post-new.php6.02 ▲0.1392.21 ▲1.20
Media Library /wp-admin/upload.php3.36 ▲0.1337.57 ▲4.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 8 new options
New tables
wp_es_advanced_form
New WordPress options
widget_email-subscribers-advanced-form
es_af_pluginversion
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Email Subscribers - Group Selector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.30 ▼1.161.71 ▼0.0440.91 ▲1.01
Dashboard /wp-admin2,225 ▲374.86 ▼0.03105.18 ▲0.3641.92 ▼0.10
Posts /wp-admin/edit.php2,108 ▲192.04 ▼0.0241.09 ▲0.5344.06 ▲8.05
Add New Post /wp-admin/post-new.php1,385 ▼13417.41 ▼5.51557.03 ▼71.2251.32 ▼0.43
Media Library /wp-admin/upload.php1,401 ▲134.23 ▲0.03100.97 ▲2.8143.05 ▲1.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_es_advanced_form
  • This plugin does not fully uninstall, leaving 8 options in the database
    • es_af_pluginversion
    • db_upgraded
    • widget_recent-comments
    • widget_email-subscribers-advanced-form
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Good news, no errors were detected

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
Please fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/email-subscribers-advanced-form/includes/form/es-af-add.php
    • > /wp-content/plugins/email-subscribers-advanced-form/includes/form/es-af-edit.php
    • > /wp-content/plugins/email-subscribers-advanced-form/email-subscribers-advanced-form.php
    • > /wp-content/plugins/email-subscribers-advanced-form/includes/form/es-af-show.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/email-subscribers-advanced-form/includes/es-af-stater.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

email-subscribers-advanced-form/email-subscribers-advanced-form.php 92% from 13 tests

The primary PHP file in "Email Subscribers - Group Selector" version 1.5.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,231 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7156391,193
CSS15025
JavaScript11013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.60
▷ Minimum class complexity4.00
▷ Maximum class complexity55.00
Average method complexity5.65
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods1575.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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/images/mail.png0.42KB0.36KB▼ 15.31%