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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.23 ▼4.66 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.76 ▼1.89 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.44 ▲2.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 86.92 ▼8.17 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.93 ▼3.75 |
MyWP Custom Login /wp-admin/options-general.php?page=mywp_custom_login__settings | 3.66 | 42.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 13.30 ▼0.99 | 1.70 ▼0.18 | 39.20 ▼6.53 |
Dashboard /wp-admin | 2,213 ▲25 | 5.83 ▲0.97 | 110.64 ▲3.33 | 36.34 ▼4.10 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 39.45 ▼3.58 | 35.03 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.41 ▲5.87 | 661.80 ▼2.45 | 53.97 ▼2.08 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.18 ▼0.02 | 95.81 ▼18.13 | 42.28 ▼5.42 |
MyWP Custom Login /wp-admin/options-general.php?page=mywp_custom_login__settings | 2,754 | 4.09 | 123.26 | 154.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 773 | 2,081 | 3,339 |
CSS | 3 | 11 | 6 | 532 |
PO File | 2 | 152 | 204 | 363 |
JSON | 6 | 0 | 0 | 269 |
JavaScript | 2 | 14 | 14 | 92 |
YAML | 3 | 13 | 1 | 87 |
Markdown | 1 | 21 | 0 | 38 |
Dockerfile | 1 | 2 | 0 | 12 |
SVG | 2 | 0 | 0 | 7 |
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 code | 0.45 |
Average class complexity | 20.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 25 | |
▷ Abstract classes | 6 | 24.00% |
▷ Concrete classes | 19 | 76.00% |
▷ Final classes | 0 | 0.00% |
Methods | 184 | |
▷ Static methods | 29 | 15.76% |
▷ Public methods | 141 | 76.63% |
▷ Protected methods | 40 | 21.74% |
▷ Private methods | 3 | 1.63% |
Functions | 25 | |
▷ Named functions | 1 | 4.00% |
▷ Anonymous functions | 24 | 96.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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