78% mywp-custom-login

Code Review | MyWP Custom Login

WordPress plugin MyWP Custom Login scored78%from 54 tests.

About plugin

  • Plugin page: mywp-custom-login
  • Plugin version: 0.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2023
  • Latest release: Sep 12, 2023
  • Number of updates: 9
  • Update frequency: every 24.4 days
  • Top authors: whodunitagency (77.78%)bmartinent (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.62ms] Passed 4 tests

An overview of server-side resources used by MyWP Custom Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.23 ▼4.66
Dashboard /wp-admin3.35 ▲0.0447.76 ▼1.89
Posts /wp-admin/edit.php3.46 ▲0.1049.44 ▲2.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.92 ▼8.17
Media Library /wp-admin/upload.php3.27 ▲0.0434.93 ▼3.75
MyWP Custom Login /wp-admin/options-general.php?page=mywp_custom_login__settings3.6642.13

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by MyWP Custom Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4913.30 ▼0.991.70 ▼0.1839.20 ▼6.53
Dashboard /wp-admin2,213 ▲255.83 ▲0.97110.64 ▲3.3336.34 ▼4.10
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0539.45 ▼3.5835.03 ▼2.35
Add New Post /wp-admin/post-new.php1,540 ▲2623.41 ▲5.87661.80 ▼2.4553.97 ▼2.08
Media Library /wp-admin/upload.php1,395 ▲104.18 ▼0.0295.81 ▼18.1342.28 ▼5.42
MyWP Custom Login /wp-admin/options-general.php?page=mywp_custom_login__settings2,7544.09123.26154.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mywp-custom-login/mywp-custom-login.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/mywp-custom-login/vendor/matthiasmullie/minify/src/JS.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/mywp-custom-login/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'whodunit\\mywpCustomLogin\\utility\\Helpers' not found in wp-content/plugins/mywp-custom-login/views/pages/admin_settings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/mywp-custom-login/vendor/matthiasmullie/minify/src/Exceptions/IOException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/mywp-custom-login/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'whodunit\\mywpCustomLogin\\Plugin' not found in wp-content/plugins/mywp-custom-login/class/whodunit/mywpCustomLogin/MyWPCustomLogin.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'whodunit\\mywpCustomLogin\\MyWPCustomLogin' not found in wp-content/plugins/mywp-custom-login/views/parts/admin_settings_header.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'whodunit\\mywpCustomLogin\\rest\\RestRoute' not found in wp-content/plugins/mywp-custom-login/class/whodunit/mywpCustomLogin/rest/RestRouteSettings.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'whodunit\\mywpCustomLogin\\page\\Page' not found in wp-content/plugins/mywp-custom-login/class/whodunit/mywpCustomLogin/page/PageAdminSettings.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/mywp-custom-login/vendor/matthiasmullie/path-converter/src/Converter.php:19

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were no plugin tags found

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

The main file in "MyWP Custom Login" v. 0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
30 characters long description:
Customise WordPress login page

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin4,739 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP397732,0813,339
CSS3116532
PO File2152204363
JSON600269
JavaScript2141492
YAML313187
Markdown121038
Dockerfile12012
SVG2007

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 108)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.70
▷ Minimum class complexity1.00
▷ Maximum class complexity117.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity108.00
Code structure
Namespaces11
Interfaces1
Traits1
Classes25
▷ Abstract classes624.00%
▷ Concrete classes1976.00%
▷ Final classes00.00%
Methods184
▷ Static methods2915.76%
▷ Public methods14176.63%
▷ Protected methods4021.74%
▷ Private methods31.63%
Functions25
▷ Named functions14.00%
▷ Anonymous functions2496.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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