Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▲0.67ms] 75% from 4 tests
Server-side resources used by WordPress Persistent Login
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,852.77ms on /wp-admin/users.php?page=wp-persistent-login)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.64 | 38.60 ▼0.29 |
Dashboard /wp-admin | 3.94 ▲0.60 | 50.34 ▼6.79 |
Posts /wp-admin/edit.php | 3.99 ▲0.64 | 49.94 ▲3.90 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 94.17 ▲5.87 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 39.68 ▲7.82 |
Persistent Login /wp-admin/users.php?page=wp-persistent-login | 3.95 | 1,852.77 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.05 | 36.92 |
Server storage [IO: ▲7.45MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 339 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
persistent_login_db_version |
persistent_login_options |
fs_debug_mode |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
fs_active_plugins |
fs_accounts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Persistent Login
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲76 | 14.68 ▲0.33 | 1.72 ▲0.11 | 30.44 ▼8.85 |
Dashboard /wp-admin | 2,216 ▲36 | 5.62 ▼0.01 | 90.79 ▼0.31 | 40.16 ▼6.66 |
Posts /wp-admin/edit.php | 2,125 ▲28 | 1.98 ▼0.02 | 40.46 ▲1.32 | 38.03 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 23.39 ▲4.75 | 726.86 ▲30.52 | 57.97 ▼1.91 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.17 ▲0.02 | 107.61 ▲11.35 | 50.22 ▲8.19 |
Persistent Login /wp-admin/users.php?page=wp-persistent-login | 983 | 1.65 | 25.15 | 57.43 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,086 | 1.65 | 28.92 | 27.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wp-persistent-login/includes/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- fs_active_plugins
- db_upgraded
- fs_debug_mode
- widget_recent-comments
- widget_recent-posts
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/bin/update-profiles.php
- > /wp-content/plugins/wp-persistent-login/classes/wp-persistent-login-login-history.php
- > /wp-content/plugins/wp-persistent-login/classes/wp-persistent-login-profile.php
- > /wp-content/plugins/wp-persistent-login/classes/wp-persistent-login-email.php
- > /wp-content/plugins/wp-persistent-login/classes/wp-persistent-login.php
- > /wp-content/plugins/wp-persistent-login/classes/wp-persistent-login-settings.php
- > /wp-content/plugins/wp-persistent-login/classes/wp-persistent-login-user-count.php
- > /wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/bin/update-chrome.php
- > /wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/bin/update-browser-ids.php
- > /wp-content/plugins/wp-persistent-login/classes/wp-persistent-login-admin.php
- 76× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-persistent-login/includes/database-upgrades.php:20
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Model\\Primitive\ameVersion' not found in wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/src/Model/Family.php:7
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Model\\Main' not found in wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/src/Parser.php:7
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Constants\\DeviceType' not found in wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/data/models-palmos.php:9
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Constants\\DeviceType' not found in wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/data/models-feature.php:8
- > PHP Warning
array_shift() expects parameter 1 to be array, null given in wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/bin/query.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Data\\DeviceModels' not found in wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/data/indices/models-s30plus.php:5
- > PHP Warning
file_get_contents(): Failed to enable crypto in wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/bin/update-browser-ids.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Model\\Primitive\ameVersion' not found in wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/src/Model/Engine.php:7
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Data\\DeviceModels' not found in wp-content/plugins/wp-persistent-login/vendor/whichbrowser/parser/data/indices/models-feature.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI found ("")
wp-persistent-login/wp_persistent_login.php 92% from 13 tests
The entry point to "WordPress Persistent Login" version 2.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-persistent-login.php" instead of "wp_persistent_login.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin92,242 lines of code in 289 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 263 | 13,371 | 19,780 | 90,999 |
Markdown | 4 | 230 | 0 | 441 |
PO File | 1 | 120 | 160 | 362 |
JavaScript | 4 | 45 | 64 | 230 |
JSON | 4 | 7 | 0 | 197 |
CSS | 13 | 0 | 0 | 13 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 54.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 5 | |
Traits | 25 | |
Classes | 100 | |
▷ Abstract classes | 2 | 2.00% |
▷ Concrete classes | 98 | 98.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,708 | |
▷ Static methods | 236 | 13.82% |
▷ Public methods | 1,075 | 62.94% |
▷ Protected methods | 42 | 2.46% |
▷ Private methods | 591 | 34.60% |
Functions | 130 | |
▷ Named functions | 116 | 89.23% |
▷ Anonymous functions | 14 | 10.77% |
Constants | 232 | |
▷ Global constants | 110 | 47.41% |
▷ Class constants | 122 | 52.59% |
▷ Public constants | 122 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |