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: ▲0.13MB] [CPU: ▲1.76ms] Passed 4 tests
Analyzing server-side resources used by Only one device login limit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 45.66 ▲10.56 |
Dashboard /wp-admin | 3.43 ▲0.09 | 47.55 ▼5.77 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.92 ▲4.11 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 88.16 ▲2.62 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.05 ▲6.07 |
Coder limit login /wp-admin/options-general.php?page=coder-limit-login-setting | 3.33 | 36.26 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
coder-limit-login-options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Only one device login limit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲115 | 13.56 ▼1.09 | 8.57 ▲6.79 | 39.13 ▼1.31 |
Dashboard /wp-admin | 2,203 ▲26 | 5.56 ▲0.02 | 81.76 ▼19.83 | 38.02 ▼6.37 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.06 ▲0.04 | 36.41 ▼1.65 | 31.45 ▼4.71 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.19 ▲0.04 | 620.55 ▼47.57 | 55.70 ▼2.00 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.18 ▲0.00 | 93.68 ▼1.48 | 43.19 ▲0.46 |
Coder limit login /wp-admin/options-general.php?page=coder-limit-login-setting | 848 | 2.01 | 22.21 | 28.42 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/only-one-device-login-limit/only-one-device-login-limit.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/only-one-device-login-limit/inc/coder-admin-menu.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please describe screenshot #3 in only-one-device-login-limit/assets to your readme.txt
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
only-one-device-login-limit/only-one-device-login-limit.php Passed 13 tests
This is the main PHP file of "Only one device login limit" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Limit login to one device at a time for a user
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin388 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 97 | 455 | 371 |
JavaScript | 1 | 3 | 1 | 17 |
CSS | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 4 | 12.50% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin