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
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▲2.93ms] Passed 4 tests
A check of server-side resources used by WP Member Login by SPIRAL
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 52.57 ▲7.40 |
Dashboard /wp-admin | 3.53 ▲0.19 | 85.67 ▲20.40 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 55.30 ▲1.51 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 99.96 ▼5.15 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 46.38 ▲7.97 |
WP Member Login by SPIRAL /wp-admin/options-general.php?page=spiral_member_login | 3.39 | 40.96 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 70 new files
Database: no new tables, 10 new options
New WordPress options |
---|
sml_version |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_spiral_member_login |
can_compress_scripts |
widget_theysaidso_widget |
spiral_member_login |
sml_is_setup |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Member Login by SPIRAL
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲24 | 14.35 ▲0.20 | 1.86 ▼0.03 | 45.30 ▲1.69 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.05 | 94.36 ▼8.57 | 41.91 ▼0.45 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.02 | 34.34 ▼3.78 | 38.60 ▲2.78 |
Add New Post /wp-admin/post-new.php | 6,199 ▲4,671 | 19.02 ▼4.03 | 922.68 ▲273.84 | 62.74 ▲13.14 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.03 | 102.77 ▼0.95 | 47.01 ▲0.57 |
WP Member Login by SPIRAL /wp-admin/options-general.php?page=spiral_member_login | 815 | 2.04 | 26.28 | 33.87 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 10 options in the database
- sml_is_setup
- widget_spiral_member_login
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- sml_version
- db_upgraded
- spiral_member_login
Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-member-login-by-spiral/views/scripts/alert_script.php
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Spiral_Member_Login_Base' not found in wp-content/plugins/wp-member-login-by-spiral/version_two/class-spiral-v2-member-login.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-member-login-by-spiral/views/admins/admin_v2.php:10
- > PHP Fatal error
Uncaught Error: Class 'Spiral_Member_Login_Base' not found in wp-content/plugins/wp-member-login-by-spiral/version_two/class-spiral-v2-member-login-template.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-member-login-by-spiral/views/login_widget.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function the_template_num() on null in wp-content/plugins/wp-member-login-by-spiral/views/user_info.php:9
- > PHP Notice
Undefined variable: template in wp-content/plugins/wp-member-login-by-spiral/views/user_info_widget.php on line 9
- > PHP Fatal error
Uncaught Error: Call to a member function the_template_num() on null in wp-content/plugins/wp-member-login-by-spiral/views/user_info_widget.php:9
- > PHP Fatal error
Uncaught Error: Class 'Recursive_ArrayAccess' not found in wp-content/plugins/wp-member-login-by-spiral/libs/class-wp-session.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-member-login-by-spiral/views/admins/admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-member-login-by-spiral/views/actions/toggle_version.php:1
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
wp-member-login-by-spiral/spiral-member-login.php 77% from 13 tests
The principal PHP file in "WP Member Login by SPIRAL" v. 1.2.5 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-member-login-by-spiral.php" instead of "spiral-member-login.php")
- Domain Path: The domain path is invalid: folder "/lang" does not exist
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
Everything looks great! No dangerous files found in this plugin20,008 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 0 | 0 | 12,977 |
PHP | 38 | 1,099 | 2,298 | 5,801 |
JavaScript | 13 | 77 | 150 | 1,081 |
CSS | 2 | 12 | 3 | 149 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 56.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 1 | 7.69% |
Methods | 318 | |
▷ Static methods | 31 | 9.75% |
▷ Public methods | 277 | 87.11% |
▷ Protected methods | 19 | 5.97% |
▷ Private methods | 22 | 6.92% |
Functions | 29 | |
▷ Named functions | 22 | 75.86% |
▷ Anonymous functions | 7 | 24.14% |
Constants | 9 | |
▷ Global constants | 5 | 55.56% |
▷ Class constants | 4 | 44.44% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
custom_blocks/version_one/app/icons/icon.png | 29.12KB | 10.84KB | ▼ 62.77% |
custom_blocks/version_two/app/icons/icon.png | 29.12KB | 10.84KB | ▼ 62.77% |