84% email-not-required

Code Review | Email not required

WordPress plugin Email not required scored84%from 54 tests.

About plugin

  • Plugin page: email-not-required
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.9
  • WordPress version: 6.3.1
  • First release: Jun 15, 2017
  • Latest release: Feb 15, 2019
  • Number of updates: 6
  • Update frequency: every 101.8 days
  • Top authors: ircf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,007 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.25ms] Passed 4 tests

A check of server-side resources used by Email not required
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.03 ▼4.28
Dashboard /wp-admin3.31 ▲0.0144.70 ▼5.13
Posts /wp-admin/edit.php3.37 ▲0.0148.50 ▼1.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.18 ▼6.54
Media Library /wp-admin/upload.php3.24 ▲0.0134.85 ▲0.57

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Email not required
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.151.58 ▼0.0638.13 ▼11.74
Dashboard /wp-admin2,203 ▲155.84 ▲0.92108.17 ▼6.6539.24 ▼7.05
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0140.56 ▲2.7735.13 ▼0.49
Add New Post /wp-admin/post-new.php1,533 ▼023.13 ▼0.10676.22 ▲5.6753.77 ▼5.20
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0595.27 ▼8.8240.61 ▼1.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/email-not-required/email-not-required.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: not required, mail, email, ircf, e-mail...

email-not-required/email-not-required.php Passed 13 tests

The entry point to "Email not required" version 0.4 is a PHP file that has certain tags in its header comment area
35 characters long description:
Disable email requirement for users

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP142152

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin