94% user-email-compromised-check

Code Review | User Email Compromised Check

WordPress plugin User Email Compromised Check scored 94% from 54 tests.

About plugin

  • Plugin page: user-email-compro...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 5.8.1
  • First release: Jun 18, 2015
  • Latest release: Apr 13, 2016
  • Number of updates: 7
  • Update frequency: every 42.9 days
  • Top authors: eherman24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 958 total downloads

Benchmarks

Plugin footprint Passed 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.07MB] [CPU: ▼131.14ms] Passed 4 tests

Analyzing server-side resources used by User Email Compromised Check
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1829.46 ▲2.08
Dashboard /wp-admin3.12 ▲0.0754.26 ▲7.81
Posts /wp-admin/edit.php3.21 ▲0.1047.11 ▲7.51
Add New Post /wp-admin/post-new.php5.48 ▲0.0597.74 ▼536.49
Media Library /wp-admin/upload.php3.06 ▲0.0635.27 ▲2.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Email Compromised Check
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.77 ▼0.247.57 ▼1.1049.02 ▲1.37
Dashboard /wp-admin2,973 ▲395.92 ▼0.02140.31 ▲1.59108.53 ▼5.96
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0065.57 ▼0.7694.29 ▲6.33
Add New Post /wp-admin/post-new.php1,498 ▼17418.85 ▼0.07364.64 ▼2.77113.50 ▼5.98
Media Library /wp-admin/upload.php1,807 ▼34.99 ▼0.04163.05 ▲18.25123.21 ▼4.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/user-email-compromised-check/user-email-compromised-check.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
You can take inspiration from this readme.txt

user-email-compromised-check/user-email-compromised-check.php Passed 13 tests

This is the main PHP file of "User Email Compromised Check" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
Check if the admin email or any other registered users email has been compromised at any point.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,170 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6137188469
CSS611038429
PHP12380258
Markdown19014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin