84% bin-email-spam-protection

Code Review | Email Spam Protection

WordPress plugin Email Spam Protection scored84%from 54 tests.

About plugin

  • Plugin page: bin-email-spam-pr...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.7
  • WordPress version: 6.3.1
  • First release: Oct 14, 2019
  • Latest release: Mar 26, 2021
  • Number of updates: 7
  • Update frequency: every 75.7 days
  • Top authors: berginformatik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,888 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.83ms] Passed 4 tests

A check of server-side resources used by Email Spam Protection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.17 ▼5.01
Dashboard /wp-admin3.33 ▲0.0245.83 ▼9.52
Posts /wp-admin/edit.php3.38 ▲0.0243.43 ▼7.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.99 ▼5.07
Media Library /wp-admin/upload.php3.25 ▲0.0237.41 ▲1.30

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Email Spam Protection
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.48 ▼1.088.42 ▲6.5943.84 ▼0.47
Dashboard /wp-admin2,198 ▲215.67 ▼0.0198.09 ▲4.5941.23 ▼2.33
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0036.46 ▼5.7429.20 ▼9.57
Add New Post /wp-admin/post-new.php1,544 ▼323.43 ▲0.23641.55 ▼24.3958.43 ▲0.77
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.01100.32 ▼4.5341.54 ▼1.67

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bin-email-spam-protection/bin-email-spam-protection.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: protection, protect, email, spam

bin-email-spam-protection/bin-email-spam-protection.php 92% from 13 tests

"Email Spam Protection" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin73 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1205369
CSS1002
JavaScript1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods571.43%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin