84% prevent-email-change

Code Review | Prevent Email Change

WordPress plugin Prevent Email Change scored 84% from 54 tests.

About plugin

  • Plugin page: prevent-email-change
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2013
  • Latest release: Feb 5, 2014
  • Number of updates: 23
  • Update frequency: every 4.8 days
  • Top authors: happyplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active / 1,498 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Prevent Email Change
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0049.15 ▲1.83
Dashboard /wp-admin3.31 ▲0.0156.86 ▲8.26
Posts /wp-admin/edit.php3.36 ▲0.0048.52 ▲6.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.58 ▼8.96
Media Library /wp-admin/upload.php3.24 ▲0.0033.65 ▼2.14

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

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

Browser metrics Passed 4 tests

Prevent Email Change: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.26 ▼1.122.41 ▲0.4979.18 ▲34.09
Dashboard /wp-admin2,203 ▲155.85 ▼0.03121.77 ▲8.7548.78 ▲1.93
Posts /wp-admin/edit.php2,092 ▼02.04 ▼0.0043.34 ▲3.2240.97 ▲5.36
Add New Post /wp-admin/post-new.php1,413 ▼12018.17 ▼5.42633.53 ▲27.7959.78 ▼2.96
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.02134.74 ▲16.8161.39 ▼4.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prevent-email-change/prevent-email-change.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: prent email change, user email

prevent-email-change/prevent-email-change.php Passed 13 tests

Analyzing the main PHP file in "Prevent Email Change" version 1.0.1
43 characters long description:
redirect the user profile to a specific url

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
No dangerous file extensions were detected24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115924

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin