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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.63ms] Passed 4 tests
A check of server-side resources used by MyWP Login Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 47.63 ▼0.46 |
Dashboard /wp-admin | 3.42 ▲0.12 | 51.90 ▼4.43 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 56.71 ▲3.02 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 99.21 ▲1.65 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.41 ▼3.29 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
MyWP Login Form: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.28 | 2.11 ▲0.32 | 47.78 ▲2.98 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.02 | 92.40 ▼5.97 | 37.66 ▼6.78 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.03 | 41.06 ▲6.68 | 36.85 ▲1.06 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,841 | 27.81 ▲4.02 | 922.62 ▲230.57 | 59.42 ▲6.50 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.10 | 97.74 ▼0.88 | 41.48 ▼4.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mywp-login-form/languages/index.php
- > /wp-content/plugins/mywp-login-form/mywp-login-form.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/mywp-login-form/core/views/template-blocks/mwp-login-form.php:14
- > PHP Fatal error
Uncaught Error: Class 'Whodunit\\MywpLoginForm\\Init\\Plugin' not found in wp-content/plugins/mywp-login-form/core/Core.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: wp-login, custom login, login customizer, login, wordpress login
mywp-login-form/mywp-login-form.php Passed 13 tests
"MyWP Login Form" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Use Gutenberg block or shortcode to add a WP login form anywhere within WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,690 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 225 | 498 | 899 |
JavaScript | 2 | 18 | 38 | 427 |
CSS | 2 | 13 | 0 | 201 |
JSON | 3 | 0 | 0 | 92 |
SVG | 4 | 0 | 0 | 40 |
PO File | 1 | 6 | 7 | 31 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 22 | 37.93% |
▷ Public methods | 53 | 91.38% |
▷ Protected methods | 1 | 1.72% |
▷ Private methods | 4 | 6.90% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin