Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼141.68ms] Passed 4 tests
Server-side resources used by WooCommerce Login Popup and Shortcodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 36.92 ▲11.11 |
Dashboard /wp-admin | 3.16 ▲0.10 | 41.00 ▼3.65 |
Posts /wp-admin/edit.php | 3.21 ▲0.09 | 41.84 ▼9.90 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 89.81 ▼557.58 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 33.19 ▲4.43 |
Login Popup /wp-admin/admin.php?page=woo_login_popup_sc_settings | 3.07 | 28.27 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 1 new option
New WordPress options |
---|
woo_login_popup_sc_installDate |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Login Popup and Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲56 | 15.80 ▲0.13 | 9.25 ▼1.41 | 48.97 ▲2.21 |
Dashboard /wp-admin | 2,973 ▲42 | 5.91 ▼0.06 | 136.19 ▼10.68 | 111.45 ▼5.98 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 69.60 ▲4.75 | 85.63 ▼3.38 |
Add New Post /wp-admin/post-new.php | 1,876 ▲4 | 19.15 ▲0.02 | 363.19 ▼22.37 | 110.60 ▲6.41 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.00 | 150.02 ▼2.27 | 116.16 ▼1.73 |
Login Popup /wp-admin/admin.php?page=woo_login_popup_sc_settings | 1,250 | 2.23 | 54.10 | 88.43 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- woo_login_popup_sc_installDate
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (WooCommerce Login Popup), #2 (WooCommerce Registration Modal), #3 (WooCommerce Reset Password Popup), #4 (WooCommerce Login Shortcode), #5 (Already Loggedin Customer Popup), #6 (Settings Page)
woocommerce-login-popup-and-shortcodes/plugin.php 69% from 13 tests
"WooCommerce Login Popup and Shortcodes" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-login-popup-and-shortcodes.php" instead of "plugin.php")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin821 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 118 | 161 | 529 |
Sass | 1 | 23 | 7 | 231 |
JavaScript | 2 | 8 | 0 | 60 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 1 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 66.67% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin