84% woo-disposable-emails

Code Review | Woo Disposable Emails

WordPress plugin Woo Disposable Emails scored84%from 54 tests.

About plugin

  • Plugin page: woo-disposable-em...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Aug 30, 2016
  • Latest release: Dec 14, 2016
  • Number of updates: 9
  • Update frequency: every 13.0 days
  • Top authors: pross (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /961 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.43ms] Passed 4 tests

Server-side resources used by Woo Disposable Emails
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.10 ▼3.79
Dashboard /wp-admin3.31 ▲0.0147.95 ▼3.03
Posts /wp-admin/edit.php3.37 ▲0.0054.13 ▲6.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0096.94 ▲1.84
Media Library /wp-admin/upload.php3.24 ▲0.0033.91 ▼0.73

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Woo Disposable Emails
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.171.71 ▲0.1142.59 ▼3.64
Dashboard /wp-admin2,198 ▲185.63 ▲0.0483.80 ▼12.1441.53 ▼6.43
Posts /wp-admin/edit.php2,103 ▲62.02 ▲0.0339.63 ▲2.2436.04 ▼0.62
Add New Post /wp-admin/post-new.php1,526 ▼223.71 ▲0.69646.68 ▼64.3649.24 ▼10.83
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0095.82 ▼21.3441.32 ▼8.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-disposable-emails/woo-disposable-emails.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: spam, login, signup

woo-disposable-emails/woo-disposable-emails.php Passed 13 tests

The main file in "Woo Disposable Emails" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Block disposable email addresses at signup woth WooCommerce.

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
No dangerous file extensions were detected477 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP996184388
Markdown221062
JSON20027

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity11.20
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods413.33%
▷ Public methods2996.67%
▷ Protected methods00.00%
▷ Private methods13.33%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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