68% emails-blacklist-everest-forms

Code Review | Emails Blacklist for Everest Forms

WordPress plugin Emails Blacklist for Everest Forms scored 68% from 54 tests.

About plugin

  • Plugin page: emails-blacklist-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 5.9.2
  • First release: Jun 18, 2021
  • Latest release: Mar 18, 2022
  • Number of updates: 7
  • Update frequency: every 39.0 days
  • Top authors: smusman98 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 247 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼297.86ms] Passed 4 tests

Analyzing server-side resources used by Emails Blacklist for Everest Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4155.86 ▲4.40
Dashboard /wp-admin3.93 ▲0.5336.45 ▲2.55
Posts /wp-admin/edit.php4.16 ▲0.5242.00 ▲5.89
Add New Post /wp-admin/post-new.php7.40 ▲0.43100.28 ▼1,200.27
Media Library /wp-admin/upload.php3.72 ▲0.4225.98 ▲1.90
Freemius Debug [v.2.5.0] /wp-admin/admin.php?page=freemius4.0627.13
Emails Blacklist for Everest Forms /wp-admin/admin.php?page=EmailsBlacklistforEverestForms3.9925.02

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 178 new files
Database: no new tables, 4 new options
New WordPress options
fs_accounts
fs_gdpr
fs_active_plugins
fs_debug_mode

Browser metrics Passed 4 tests

This is an overview of browser requirements for Emails Blacklist for Everest Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,845 ▲9116.33 ▲0.435.67 ▼0.272.35 ▼0.97
Dashboard /wp-admin2,970 ▲836.43 ▼0.11129.45 ▼15.94176.61 ▲13.57
Posts /wp-admin/edit.php2,737 ▲493.44 ▲0.0164.03 ▲1.90154.79 ▲20.33
Add New Post /wp-admin/post-new.php1,682 ▲2216.29 ▲0.46398.28 ▼6.71156.82 ▼18.42
Media Library /wp-admin/upload.php1,747 ▲525.75 ▲0.04145.19 ▼6.76210.07 ▲12.29
Freemius Debug [v.2.5.0] /wp-admin/admin.php?page=freemius1,4332.8256.57113.29
Emails Blacklist for Everest Forms /wp-admin/admin.php?page=EmailsBlacklistforEverestForms1,3712.6654.25170.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/includes/class-freemius.php+8884
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 4 options in the database
    • fs_debug_mode
    • fs_gdpr
    • fs_accounts
    • fs_active_plugins

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/templates/ajax-loader.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/emails-blacklist-everest-forms/includes/freemius/templates/account/partials/addon.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

emails-blacklist-everest-forms/emails-blacklist-everest-forms.php Passed 13 tests

The main PHP script in "Emails Blacklist for Everest Forms" version 1.0.2 is automatically included on every request by WordPress
125 characters long description:
Admin will be able to blacklist by email addresses, domains, and other fields , Users with blacklisted forms won't be submit.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected33,058 lines of code in 133 files:
LanguageFilesBlank linesComment linesLines of code
PHP1137,78416,92232,492
JavaScript44162268
Markdown2830249
JSON10027
CSS132022

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,025)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity92.79
▷ Minimum class complexity1.00
▷ Maximum class complexity3,025.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes47
▷ Abstract classes24.26%
▷ Concrete classes4595.74%
▷ Final classes00.00%
Methods1,220
▷ Static methods18214.92%
▷ Public methods86170.57%
▷ Protected methods151.23%
▷ Private methods34428.20%
Functions97
▷ Named functions97100.00%
▷ Anonymous functions00.00%
Constants137
▷ Global constants10576.64%
▷ Class constants3223.36%
▷ Public constants32100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/freemius/assets/img/EmailsBlacklistforEverestForms.png9.16KB5.26KB▼ 42.58%