90% woo-email-domain-blacklist

Code Review | Woo EDD Email Domain Blacklist

WordPress plugin Woo EDD Email Domain Blacklist scored90%from 54 tests.

About plugin

  • Plugin page: woo-email-domain-...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: May 8, 2019
  • Number of updates: 15
  • Update frequency: every 83.3 days
  • Top authors: kowsar89 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /1,597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.00ms] Passed 4 tests

Server-side resources used by Woo EDD Email Domain Blacklist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.90 ▲3.68
Dashboard /wp-admin3.51 ▲0.2150.61 ▲1.25
Posts /wp-admin/edit.php3.56 ▲0.2154.99 ▲10.24
Add New Post /wp-admin/post-new.php6.01 ▲0.1281.02 ▼19.13
Media Library /wp-admin/upload.php3.35 ▲0.1236.05 ▲2.20
Woo EDD Email Blacklist /wp-admin/options-general.php?page=woo-email-domain-blacklist3.3536.79

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
foa_wc_email_blacklist
widget_recent-comments

Browser metrics Passed 4 tests

Woo EDD Email Domain Blacklist: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲18714.86 ▲0.211.61 ▼0.2343.27 ▲4.04
Dashboard /wp-admin2,364 ▲1796.63 ▲1.72120.74 ▲20.6238.11 ▼0.39
Posts /wp-admin/edit.php2,276 ▲1873.64 ▲1.6259.35 ▲22.8335.44 ▲0.81
Add New Post /wp-admin/post-new.php1,688 ▲15022.61 ▼0.36651.17 ▼4.9639.66 ▼20.21
Media Library /wp-admin/upload.php1,406 ▲154.31 ▼0.0380.90 ▼20.7441.76 ▼1.51
Woo EDD Email Blacklist /wp-admin/options-general.php?page=woo-email-domain-blacklist1,0403.4748.9223.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • foa_wc_email_blacklist
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

woo-email-domain-blacklist/woo-email-domain-blacklist.php Passed 13 tests

Analyzing the main PHP file in "Woo EDD Email Domain Blacklist" version 2.0.0
103 characters long description:
A lightweight plugin to block any email domain from WooCommerce and Easy Digital Download checkout page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin545 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5170198545

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity27.00
▷ Minimum class complexity8.00
▷ Maximum class complexity52.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods48
▷ Static methods48.33%
▷ Public methods4491.67%
▷ Protected methods00.00%
▷ Private methods48.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin