90% mail-deactivation

Code Review | Mail Deactivation

WordPress plugin Mail Deactivation scored 90% from 54 tests.

About plugin

  • Plugin page: mail-deactivation
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2014
  • Latest release: Mar 19, 2014
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: plocha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 973 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
Install script ran successfully

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

This is a short check of server-side resources used by Mail Deactivation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.09 ▼5.05
Dashboard /wp-admin3.31 ▲0.0044.39 ▼6.38
Posts /wp-admin/edit.php3.36 ▲0.0042.55 ▼6.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.78 ▼1.27
Media Library /wp-admin/upload.php3.23 ▲0.0037.36 ▲2.84

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Mail Deactivation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.19 ▼0.111.65 ▲0.0239.69 ▼1.17
Dashboard /wp-admin2,206 ▼34.83 ▼0.05106.79 ▲9.3440.31 ▲2.40
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.1035.72 ▼3.0932.16 ▼3.30
Add New Post /wp-admin/post-new.php1,520 ▼1423.26 ▲0.11667.95 ▼34.5667.35 ▲17.98
Media Library /wp-admin/upload.php1,385 ▼04.19 ▲0.0194.03 ▼6.2342.88 ▼3.15

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
10 plugin tags: emailing, email, wp_mail, e-mail, penis...

mail-deactivation/mail-deactivation.php Passed 13 tests

The principal PHP file in "Mail Deactivation" v. 1.0 is loaded by WordPress automatically on each request
29 characters long description:
deactivates the mail function

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
Everything looks great! No dangerous files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16206

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin