78% email-verifications

Code Review | Email Verifications

WordPress plugin Email Verifications scored78%from 54 tests.

About plugin

  • Plugin page: email-verifications
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Oct 25, 2019
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: technokrats43 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▲1.02ms] 75% from 4 tests

Server-side resources used by Email Verifications
The following require your attention
  • CPU: Total CPU usage should be kept under 500.00ms (currently 5,043.52ms on /wp-admin/options-general.php?page=emvfs_settings)
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.95 ▼0.32
Dashboard /wp-admin3.37 ▲0.0753.83 ▼1.12
Posts /wp-admin/edit.php3.49 ▲0.1350.62 ▲1.97
Add New Post /wp-admin/post-new.php5.95 ▲0.07100.97 ▲6.06
Media Library /wp-admin/upload.php3.29 ▲0.0737.07 ▲3.54
Email Verifications /wp-admin/options-general.php?page=emvfs_settings3.615,043.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Email Verifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.71 ▲0.361.98 ▲0.0844.37 ▼2.73
Dashboard /wp-admin2,201 ▲245.65 ▲0.0393.96 ▼5.9340.78 ▼2.27
Posts /wp-admin/edit.php2,106 ▲62.02 ▲0.0639.64 ▲3.0838.09 ▲3.71
Add New Post /wp-admin/post-new.php1,531 ▼223.11 ▲0.25661.75 ▼31.4657.52 ▲6.72
Media Library /wp-admin/upload.php1,406 ▲64.10 ▼0.04116.85 ▲1.7647.37 ▼1.31
Email Verifications /wp-admin/options-general.php?page=emvfs_settings2,3482.0524.0333.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/email-verifications/includes/emailverifier_footer.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: message in wp-content/plugins/email-verifications/includes/emailverifier_header.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/email-verifications/includes/emailverifier_footer.php:293
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/email-verifications/includes/mobileverifier_stat.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-verifications/plugin_interface.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/email-verifications/includes/emailverifier_header.php:36
    • > PHP Notice
      Undefined variable: error in wp-content/plugins/email-verifications/includes/emailverifier_header.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/email-verifications/includes/emailverifier_stat.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-verifications/email-verifications.php:36
    • > PHP Notice
      Undefined variable: selected_country_message in wp-content/plugins/email-verifications/includes/emailverifier_footer.php on line 45

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
8 plugin tags: mobile verification, email verification, email validation, mobile number exists, mobile number validation...

email-verifications/email-verifications.php Passed 13 tests

"Email Verifications" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Allow only real email and mobile number pass in contact form 7

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin855 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP613435849
CSS1006

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.25
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png77.35KB29.66KB▼ 61.66%
screenshot-1.png160.31KB54.19KB▼ 66.20%