84% my-custom-login

Code Review | My Custom Login

WordPress plugin My Custom Login scored84%from 54 tests.

About plugin

  • Plugin page: my-custom-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Nov 18, 2015
  • Number of updates: 18
  • Update frequency: every 0.1 days
  • Top authors: macsystem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,402 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.66ms] Passed 4 tests

This is a short check of server-side resources used by My Custom Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.55 ▲6.41
Dashboard /wp-admin3.31 ▲0.0151.41 ▼3.43
Posts /wp-admin/edit.php3.36 ▲0.0151.90 ▲1.38
Add New Post /wp-admin/post-new.php5.89 ▲0.01100.06 ▼1.18
Media Library /wp-admin/upload.php3.24 ▲0.0137.10 ▲0.61

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

My Custom Login: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.181.77 ▼0.0442.09 ▲0.66
Dashboard /wp-admin2,192 ▲125.50 ▼0.1188.77 ▼11.1537.31 ▼4.24
Posts /wp-admin/edit.php2,100 ▲32.02 ▼0.1037.01 ▲2.3337.10 ▲2.12
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.03645.49 ▼61.1259.85 ▼2.81
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0694.83 ▼9.2241.75 ▼5.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/my-custom-login/my-custom-login.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
5 plugin tags: custom, log in, registration, login, register

my-custom-login/my-custom-login.php Passed 13 tests

The main PHP script in "My Custom Login" version 1.0.0 is automatically included on every request by WordPress
111 characters long description:
My Custom Login is the WordPress login plugin, allows site admin to add login/registration on their sites menu.

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 plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18720

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.75
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%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin