84% block-temporary-email

Code Review | Block Temporary Email

WordPress plugin Block Temporary Email scored84%from 54 tests.

About plugin

  • Plugin page: block-temporary-e...
  • Plugin version: 1.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-6.4
  • WordPress version: 6.3.1
  • First release: Jan 15, 2017
  • Latest release: Nov 8, 2023
  • Number of updates: 29
  • Update frequency: every 85.7 days
  • Top authors: istempmail (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /4,634 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.53ms] Passed 4 tests

An overview of server-side resources used by Block Temporary Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.24 ▼0.94
Dashboard /wp-admin3.33 ▲0.0350.96 ▲6.95
Posts /wp-admin/edit.php3.39 ▲0.0345.33 ▲1.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.88 ▼7.93
Media Library /wp-admin/upload.php3.26 ▲0.0334.55 ▲1.59
IsTempMail /wp-admin/options-general.php?page=istempmail-settings3.2931.51

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
istempmail_token
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Block Temporary Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.57 ▲0.231.91 ▲0.2643.93 ▲0.23
Dashboard /wp-admin2,202 ▲215.66 ▼0.0586.64 ▼21.8042.74 ▲5.12
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0735.16 ▲0.6329.70 ▼6.26
Add New Post /wp-admin/post-new.php1,529 ▲323.26 ▲0.27679.39 ▼18.5961.74 ▲7.85
Media Library /wp-admin/upload.php1,398 ▲14.18 ▼0.0197.48 ▼9.8841.33 ▼5.77
IsTempMail /wp-admin/options-general.php?page=istempmail-settings9582.1523.4725.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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
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
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/block-temporary-email/settings.php
    • > /wp-content/plugins/block-temporary-email/istempmail.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: check email, mailinator, validate email, temporary email, trashmail...

block-temporary-email/istempmail.php 85% from 13 tests

This is the main PHP file of "Block Temporary Email" version 1.6.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("block-temporary-email.php" instead of "istempmail.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 264 characters long)

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
There were no executable files found in this plugin405 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28821405

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods1583.33%
▷ Protected methods211.11%
▷ Private methods15.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin