74% dm-confirm-email

Code Review | DM Confirm Email

WordPress plugin DM Confirm Email scored74%from 54 tests.

About plugin

  • Plugin page: dm-confirm-email
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8.1
  • WordPress version: 6.3.1
  • First release: Aug 23, 2013
  • Latest release: Mar 11, 2014
  • Number of updates: 13
  • Update frequency: every 15.4 days
  • Top authors: donmhico (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /15,599 total downloads

Benchmarks

Plugin footprint 65% 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.15MB] [CPU: ▼12.59ms] Passed 4 tests

This is a short check of server-side resources used by DM Confirm Email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.98 ▼4.80
Dashboard /wp-admin3.46 ▲0.1247.69 ▼22.47
Posts /wp-admin/edit.php3.57 ▲0.2253.54 ▲5.29
Add New Post /wp-admin/post-new.php6.04 ▲0.1585.97 ▼20.59
Media Library /wp-admin/upload.php3.38 ▲0.1634.21 ▼2.49
DM Confirm Email /wp-admin/options-general.php?page=dm_confirm_email_options3.3530.17

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: 1 new table, 8 new options
New tables
wp_dmec
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
dmec
db_upgraded
dmec_dbversion
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by DM Confirm Email
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.33 ▼1.231.55 ▼0.3440.47 ▼6.55
Dashboard /wp-admin2,210 ▲224.85 ▼0.01113.31 ▼7.4743.68 ▼2.09
Posts /wp-admin/edit.php2,096 ▲102.01 ▼0.0336.77 ▼0.1734.91 ▼2.38
Add New Post /wp-admin/post-new.php1,556 ▲4218.32 ▲0.81648.77 ▼63.8964.19 ▲16.78
Media Library /wp-admin/upload.php1,392 ▲44.38 ▲0.19105.81 ▼7.2842.43 ▼4.24
DM Confirm Email /wp-admin/options-general.php?page=dm_confirm_email_options1,0842.0828.6930.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_dmec
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • dmec
    • widget_recent-comments
    • dmec_dbversion
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/dm-confirm-email/dm-confirm-email.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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: security, register, spam, email, protect...

dm-confirm-email/dm-confirm-email.php 92% from 13 tests

"DM Confirm Email" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 166 characters long)

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 plugin777 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9173308764
JavaScript15510
CSS1103

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity9.29
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods36.82%
▷ Public methods3272.73%
▷ Protected methods00.00%
▷ Private methods1227.27%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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