Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.46MB] [CPU: ▲11.08ms] Passed 4 tests
This is a short check of server-side resources used by Sessions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.82 ▲1.35 | 55.74 ▲23.04 |
Dashboard /wp-admin | 4.85 ▲1.50 | 62.49 ▲4.22 |
Posts /wp-admin/edit.php | 4.91 ▲1.54 | 65.03 ▲23.59 |
Add New Post /wp-admin/post-new.php | 7.39 ▲1.50 | 93.71 ▼0.24 |
Media Library /wp-admin/upload.php | 4.72 ▲1.48 | 51.47 ▲17.28 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 4.69 | 55.21 |
Sessions /wp-admin/admin.php?page=pose-viewer | 5.16 | 47.88 |
Sessions /wp-admin/admin.php?page=pose-settings | 4.90 | 45.66 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 4.69 | 41.76 |
Sessions /wp-admin/admin.php?page=pose-manager | 5.02 | 49.00 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 4.73 | 60.79 |
Server storage [IO: ▲2.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 471 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_sessions_statistics |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Sessions: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲62 | 14.23 ▼0.16 | 1.72 ▼0.24 | 42.64 ▼1.69 |
Dashboard /wp-admin | 2,239 ▲61 | 5.57 ▼0.04 | 94.93 ▼23.37 | 42.58 ▲1.20 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 2.03 ▲0.03 | 35.52 ▼5.13 | 32.82 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.47 ▲0.37 | 676.48 ▲65.25 | 61.90 ▼2.36 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.27 ▲0.12 | 98.08 ▲5.12 | 43.54 ▲3.51 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 883 | 1.99 | 23.49 | 27.46 |
Sessions /wp-admin/admin.php?page=pose-viewer | 1,392 | 3.33 | 76.13 | 63.21 |
Sessions /wp-admin/admin.php?page=pose-settings | 1,156 | 2.01 | 23.83 | 35.66 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 883 | 2.00 | 22.96 | 20.99 |
Sessions /wp-admin/admin.php?page=pose-manager | 1,250 | 2.07 | 25.49 | 33.93 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 1,052 | 2.01 | 33.55 | 44.79 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pose-manager
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sessions/public/partials/sessions-public-display.php
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Trait 'cebe\\markdownparser\\block\\CodeTrait' not found in wp-content/plugins/sessions/includes/libraries/markdown/block/FencedCodeTrait.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/sessions/includes/libraries/psr/http-message/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/sessions/includes/libraries/psr/http-client/RequestExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'cebe\\markdownparser\\MarkdownParser' not found in wp-content/plugins/sessions/includes/libraries/markdown/MarkdownExtra.php:17
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/sessions/includes/features/class-sessions.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/sessions/perfopsone/class-upgraderskin.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/sessions/includes/libraries/psr/http-message/RequestInterface.php:24
- > PHP Warning
require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/sessions/perfopsone/class-installer.php on line 12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/sessions/includes/libraries/decalog-sdk/EventsLogger.php:22
- > PHP Warning
Use of undefined constant POSE_VENDOR_DIR - assumed 'POSE_VENDOR_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/sessions/includes/libraries/class-libraries.php on line 64
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
5 plugin tags: session, authentication, role, protection, login
sessions/sessions.php Passed 13 tests
"Sessions" version 2.12.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
104 characters long description:
Powerful sessions manager for WordPress with sessions limiter and full analytics reporting capabilities.
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 plugin38,185 lines of code in 439 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 1,926 | 2,305 | 20,395 |
PHP | 120 | 1,400 | 7,969 | 11,135 |
SVG | 285 | 0 | 1 | 4,251 |
CSS | 13 | 285 | 2 | 1,920 |
Markdown | 7 | 168 | 0 | 431 |
JSON | 2 | 0 | 0 | 53 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 259.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 13 | |
Traits | 15 | |
Classes | 74 | |
▷ Abstract classes | 2 | 2.70% |
▷ Concrete classes | 72 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 711 | |
▷ Static methods | 256 | 36.01% |
▷ Public methods | 518 | 72.86% |
▷ Protected methods | 115 | 16.17% |
▷ Private methods | 78 | 10.97% |
Functions | 27 | |
▷ Named functions | 8 | 29.63% |
▷ Anonymous functions | 19 | 70.37% |
Constants | 54 | |
▷ Global constants | 43 | 79.63% |
▷ Class constants | 11 | 20.37% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected