89% email-confirmation-for-restrict-content-pro

Code Review | Email Confirmation for Restrict Content Pro

WordPress plugin Email Confirmation for Restrict Content Pro scored89%from 54 tests.

About plugin

  • Plugin page: email-confirmatio...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: Nov 11, 2021
  • Number of updates: 4
  • Update frequency: every 137.0 days
  • Top authors: angelvilches (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Email Confirmation for Restrict Content Pro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.97 ▼8.46
Dashboard /wp-admin3.31 ▼0.0448.55 ▼24.93
Posts /wp-admin/edit.php3.36 ▲0.0050.28 ▲1.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.87 ▼2.50
Media Library /wp-admin/upload.php3.23 ▲0.0041.54 ▲5.03

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/email-confirmation-for-restrict-content-pro/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Email Confirmation for Restrict Content Pro
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.64 ▼0.791.76 ▼0.2041.99 ▼4.03
Dashboard /wp-admin2,221 ▲215.88 ▲0.8198.74 ▼16.5144.03 ▼1.58
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0037.08 ▼1.6734.01 ▼3.89
Add New Post /wp-admin/post-new.php1,545 ▼023.38 ▲0.12660.29 ▼33.2157.77 ▲1.00
Media Library /wp-admin/upload.php1,403 ▲64.12 ▼0.09101.04 ▼3.8445.79 ▲0.41

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: registration form, restrict access, restrict posts, restrict content pro, restric pages

email-confirmation-for-restrict-content-pro/emailconfirmation-rcp.php 92% from 13 tests

The main file in "Email Confirmation for Restrict Content Pro" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("email-confirmation-for-restrict-content-pro.php" instead of "emailconfirmation-rcp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin99 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1202356
PO File181040
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin