Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼3.91ms] Passed 4 tests
Analyzing server-side resources used by WP Session Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 42.00 ▲4.72 |
Dashboard /wp-admin | 3.55 ▲0.20 | 48.25 ▼7.66 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.78 ▲4.07 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 85.28 ▼16.55 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 36.81 ▲4.50 |
Server storage [IO: ▲0.47MB] [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: 121 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_sm_sessions |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Session Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.42 ▼0.14 | 1.68 ▲0.07 | 45.30 ▲5.17 |
Dashboard /wp-admin | 2,195 ▲14 | 5.67 ▲0.00 | 84.54 ▼11.65 | 40.01 ▼6.43 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▲0.03 | 34.19 ▼1.10 | 36.85 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.17 ▲0.30 | 670.61 ▲8.40 | 54.41 ▼2.53 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.20 ▲0.01 | 93.83 ▼6.39 | 41.02 ▼6.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_sm_sessions
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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)
Good news, no errors were detected
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
- 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-session-manager/vendor/paragonie/random_compat/tests/unit_with_basedir/RandomBytesTest.php:2
- > PHP Fatal error
Uncaught Error: Interface 'EAMann\\Sessionz\\Handler' not found in wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Handlers/DefaultHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-session-manager/vendor/paragonie/random_compat/tests/unit/UtilityTest.php:2
- > PHP Fatal error
Uncaught Error: Interface 'EAMann\\Sessionz\\Handler' not found in wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Handlers/BaseHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/test/phpunit/Objects/MemoryItemTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Crypto' not found in wp-content/plugins/wp-session-manager/vendor/defuse/php-encryption/src/RuntimeTests.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/test/phpunit/Handlers/MemoryHandlerTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-session-manager/vendor/paragonie/random_compat/tests/unit_with_basedir/RandomIntTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-session-manager/vendor/paragonie/random_compat/tests/unit/RandomIntTest.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-session-manager/wp-session-manager.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: session
wp-session-manager/wp-session-manager.php Passed 13 tests
The main PHP script in "WP Session Manager" version 4.2.0 is automatically included on every request by WordPress
33 characters long description:
Session management for WordPress.
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
Everything looks great! No dangerous files found in this plugin7,006 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 70 | 798 | 2,848 | 4,045 |
Markdown | 21 | 869 | 0 | 2,398 |
JSON | 6 | 0 | 0 | 325 |
XML | 4 | 1 | 9 | 87 |
YAML | 3 | 10 | 0 | 77 |
Bourne Shell | 2 | 8 | 7 | 50 |
make | 1 | 9 | 4 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 7 | 14.89% |
Methods | 210 | |
▷ Static methods | 62 | 29.52% |
▷ Public methods | 182 | 86.67% |
▷ Protected methods | 13 | 6.19% |
▷ Private methods | 15 | 7.14% |
Functions | 53 | |
▷ Named functions | 32 | 60.38% |
▷ Anonymous functions | 21 | 39.62% |
Constants | 34 | |
▷ Global constants | 4 | 11.76% |
▷ Class constants | 30 | 88.24% |
▷ Public constants | 30 | 100.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