90% wp-custom-my-password

Code Review | WP Custom My Password

WordPress plugin WP Custom My Password scored90%from 54 tests.

About plugin

  • Plugin page: wp-custom-my-pass...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2014
  • Latest release: Dec 6, 2014
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: suifengtec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,092 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.01MB] [CPU: ▼9.98ms] Passed 4 tests

A check of server-side resources used by WP Custom My Password
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0068.96 ▼7.26
Dashboard /wp-admin3.31 ▼0.0380.22 ▼30.39
Posts /wp-admin/edit.php3.36 ▲0.0075.05 ▼1.08
Add New Post /wp-admin/post-new.php5.89 ▲0.00146.06 ▲5.80
Media Library /wp-admin/upload.php3.23 ▲0.0058.41 ▼1.19

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Custom My Password
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.23 ▲0.204.24 ▲0.4891.58 ▲16.01
Dashboard /wp-admin2,203 ▲215.85 ▲0.96178.66 ▼14.1680.76 ▼11.58
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0263.88 ▼9.1572.39 ▼2.48
Add New Post /wp-admin/post-new.php1,411 ▲1417.82 ▲0.07932.30 ▼24.8481.94 ▼23.50
Media Library /wp-admin/upload.php1,382 ▼94.20 ▼0.10175.49 ▼11.1388.80 ▼10.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
Attributes that need to be fixed:
  • License uri: Invalid URI ("http//www.gnu.org/licensesgpl-2.0.html")
Please take inspiration from this readme.txt

wp-custom-my-password/wp-custom-my-password.php Passed 13 tests

"WP Custom My Password" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
This plugin allows your user to custom his password on the registration screen.

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
There were no executable files found in this plugin106 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File2101058
PHP16948

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.74
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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