Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/stay-alive/stay-alive-widget.php+65
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼56.35ms] Passed 4 tests
An overview of server-side resources used by Stay Alive
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.12 ▼37.36 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.07 ▼56.51 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.83 ▼40.70 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.27 ▼90.84 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.88 ▼28.56 |
Stay Alive /wp-admin/options-general.php?page=stay-alive-admin | 2.05 | 5.07 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_stayalivewidget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Stay Alive
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 13.60 ▼0.75 | 5.28 ▲3.44 | 40.71 ▲3.19 |
Dashboard /wp-admin | 2,208 ▲31 | 5.85 ▲0.25 | 85.68 ▼0.58 | 37.82 ▼6.21 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.29 ▲0.32 | 34.33 ▲0.12 | 30.10 ▼7.96 |
Add New Post /wp-admin/post-new.php | 1,538 ▼11 | 23.25 ▲5.14 | 707.92 ▲93.48 | 35.67 ▼32.04 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.42 ▲0.14 | 97.10 ▼18.81 | 42.37 ▼5.04 |
Stay Alive /wp-admin/options-general.php?page=stay-alive-admin | 834 | 1.89 | 25.19 | 27.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/stay-alive/stay-alive-widget.php+65
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_stayalivewidget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=stay-alive-admin
- > Deprecated in wp-content/plugins/stay-alive/stay-alive-widget.php+65
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=stay-alive-admin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in StayAliveWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=stay-alive-admin
- > User deprecated in wp-includes/functions.php+5737
Function WP_User->id was called with an argument that is deprecated since version 2.1.0! Use WP_User->ID instead.
SRP 50% 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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/stay-alive/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/stay-alive/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stay-alive/stay-alive-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/stay-alive/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/stay-alive/vendor/pusher/pusher-php-server/src/Pusher.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=stay-alive-admin
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught
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
7 plugin tags: users, live, login, chat, active...
stay-alive/stay-alive.php Passed 13 tests
The main PHP script in "Stay Alive" version 2.4.8 is automatically included on every request by WordPress
61 characters long description:
Stay Alive: wordpress plugin to check logged in user's status
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,528 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 320 | 810 | 1,203 |
JSON | 4 | 0 | 0 | 169 |
Markdown | 2 | 62 | 0 | 95 |
JavaScript | 1 | 15 | 0 | 58 |
CSS | 1 | 0 | 0 | 3 |
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.32 |
Average class complexity | 8.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 6 | 5.61% |
▷ Public methods | 97 | 90.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 9.35% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin