90% signup-breach-checker

Code Review | Signup Breach Checker

WordPress plugin Signup Breach Checker scored90%from 54 tests.

About plugin

  • Plugin page: signup-breach-che...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2018
  • Latest release: Jun 5, 2019
  • Number of updates: 3
  • Update frequency: every 168.7 days
  • Top authors: duplaja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /727 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.69ms] Passed 4 tests

Analyzing server-side resources used by Signup Breach Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.07 ▼6.30
Dashboard /wp-admin3.34 ▲0.0445.01 ▼7.57
Posts /wp-admin/edit.php3.39 ▲0.0348.82 ▲4.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.57 ▲3.27
Media Library /wp-admin/upload.php3.26 ▲0.0334.26 ▼0.15
Signup Breach Checker /wp-admin/tools.php?page=signup-breach-checker3.2331.26

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Signup Breach Checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.71 ▼0.661.67 ▼0.1443.30 ▼1.18
Dashboard /wp-admin2,213 ▲395.85 ▲0.97103.09 ▼10.1338.60 ▼3.69
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0345.30 ▲9.0836.94 ▼0.19
Add New Post /wp-admin/post-new.php1,522 ▼1123.24 ▼0.03584.40 ▼115.7553.98 ▲2.75
Media Library /wp-admin/upload.php1,386 ▼24.18 ▼0.0395.78 ▼13.5043.36 ▼2.65
Signup Breach Checker /wp-admin/tools.php?page=signup-breach-checker8502.0224.2529.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

signup-breach-checker/signup-breach-checker.php Passed 13 tests

The principal PHP file in "Signup Breach Checker" v. 1.1 is loaded by WordPress automatically on each request
100 characters long description:
Checks user e-mails and optionally passwords against breach lists from haveibeenpwned.com on signup.

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
Good job! No executable or dangerous file extensions detected191 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP310556191

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected