Benchmarks
Plugin footprint 82% 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.15MB] [CPU: ▼8.00ms] 75% from 4 tests
Analyzing server-side resources used by LoginPress | wp-login Custom Login Page Customizer
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 850.51ms on /wp-admin/admin.php?page=loginpress-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 40.21 ▲3.76 |
Dashboard /wp-admin | 3.50 ▲0.16 | 47.20 ▼20.24 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.37 ▲0.59 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 83.07 ▼16.10 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.97 ▲5.09 |
Customizer /wp-admin/admin.php?page=loginpress | 3.19 | 26.97 |
Activate /wp-admin/admin.php?page=loginpress-optin | 3.33 | 35.22 |
LoginPress /wp-admin/themes.php?page=abw | 3.19 | 27.44 |
Help /wp-admin/admin.php?page=loginpress-help | 3.48 | 32.01 |
Settings /wp-admin/admin.php?page=loginpress-settings | 3.19 | 26.19 |
Import / Export /wp-admin/admin.php?page=loginpress-import-export | 3.37 | 34.62 |
Add-Ons /wp-admin/admin.php?page=loginpress-addons | 3.54 | 850.51 |
Server storage [IO: ▲4.00MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 136 new files
Database: no new tables, 9 new options
New WordPress options |
---|
loginpress_premium |
db_upgraded |
widget_recent-posts |
loginpress_setting |
loginpress_customization |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by LoginPress | wp-login Custom Login Page Customizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 14.25 ▲0.04 | 1.62 ▲0.13 | 49.82 ▲7.62 |
Dashboard /wp-admin | 2,236 ▲56 | 5.52 ▼0.07 | 84.22 ▼2.31 | 36.49 ▼2.85 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.03 ▲0.05 | 39.68 ▼2.60 | 36.15 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,562 ▲27 | 23.07 ▲4.72 | 661.96 ▲42.37 | 49.41 ▼20.23 |
Media Library /wp-admin/upload.php | 1,447 ▲50 | 4.24 ▼0.00 | 92.62 ▼10.65 | 42.02 ▼2.55 |
Customizer /wp-admin/admin.php?page=loginpress | 880 | 1.98 | 22.85 | 42.63 |
Activate /wp-admin/admin.php?page=loginpress-optin | 883 | 2.01 | 22.43 | 35.19 |
LoginPress /wp-admin/themes.php?page=abw | 883 | 2.01 | 24.55 | 36.31 |
Help /wp-admin/admin.php?page=loginpress-help | 857 | 2.01 | 22.98 | 25.92 |
Settings /wp-admin/admin.php?page=loginpress-settings | 880 | 2.16 | 23.59 | 35.24 |
Import / Export /wp-admin/admin.php?page=loginpress-import-export | 908 | 2.00 | 26.34 | 27.92 |
Add-Ons /wp-admin/admin.php?page=loginpress-addons | 1,547 | 2.20 | 23.22 | 37.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- loginpress_premium
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- loginpress_setting
- loginpress_customization
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/loginpress/include/loginpress-optin-form.php
- > /wp-content/plugins/loginpress/include/login-footer.php
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/loginpress/classes/class-loginpress-promo.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/loginpress/include/customizer-strings.php:9
- > PHP Warning
Use of undefined constant LOGINPRESS_ROOT_PATH - assumed 'LOGINPRESS_ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/loginpress/classes/class-loginpress-promo.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/loginpress/classes/control-promo.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/loginpress/classes/class-loginpress-promotion.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/loginpress/css/style-login.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/loginpress/include/loginpress-optin-form.php:258
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loginpress/include/compatibility.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/loginpress/include/loginpress-optout-form.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/loginpress/classes/controls/radio-button.php:9
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=loginpress-addons
- > Network (severe)
wp-content/plugins/loginpress-pro/img/loginpress-logo2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: custom login, login, wp-login, login customizer, wordpress login
loginpress/loginpress.php 92% from 13 tests
"LoginPress | wp-login Custom Login Page Customizer" version 1.8.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 245 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected18,950 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 1,853 | 3,104 | 8,345 |
PO File | 9 | 2,960 | 3,347 | 7,560 |
JavaScript | 6 | 334 | 358 | 1,770 |
CSS | 6 | 38 | 25 | 1,168 |
SVG | 6 | 0 | 4 | 107 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 27.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 2 | 7.69% |
Methods | 246 | |
▷ Static methods | 13 | 5.28% |
▷ Public methods | 220 | 89.43% |
▷ Protected methods | 14 | 5.69% |
▷ Private methods | 12 | 4.88% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
31 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/thumbnail/default-11.png | 24.67KB | 25.44KB | 0.00% |
img/thumbnail/gallery-img-1.png | 1.06KB | 1.12KB | 0.00% |
img/thumbnail/default-14.png | 20.91KB | 21.74KB | 0.00% |
img/back_arrow.png | 0.17KB | 0.17KB | 0.00% |
img/black-friday.png | 7.68KB | 4.07KB | ▼ 46.93% |