Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.33ms] Passed 4 tests
An overview of server-side resources used by FS Login Devices
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.03 ▲3.08 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.28 ▼2.52 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.80 ▲4.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.50 ▼8.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.78 ▲2.67 |
Login Devices /wp-admin/users.php?page=fs-login-devices | 3.30 | 34.40 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_fs_login_devices |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
fs_login_devices_db_version |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by FS Login Devices
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.66 ▼0.71 | 1.73 ▼0.28 | 44.61 ▼0.56 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.01 | 97.57 ▼5.48 | 39.96 ▼5.84 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.13 ▲0.08 | 34.53 ▲0.47 | 33.39 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.22 ▲5.74 | 707.05 ▲6.60 | 50.27 ▼3.73 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.19 ▼0.06 | 91.30 ▼7.84 | 41.14 ▼2.81 |
Login Devices /wp-admin/users.php?page=fs-login-devices | 1,135 | 2.33 | 38.71 | 31.82 |
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
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_fs_login_devices
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- fs_login_devices_db_version
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/login-devices/fs-login-devices.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Fsylum\\LoginDevices\\Contracts\\Runnable' not found in wp-content/plugins/login-devices/src/WP/Auth.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Fsylum\\LoginDevices\\Contracts\\Runnable' not found in wp-content/plugins/login-devices/src/WP/Asset.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/login-devices/src/WP/ListTables/DeviceListTable.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Fsylum\\LoginDevices\\Contracts\\Runnable' not found in wp-content/plugins/login-devices/src/WP/Admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: user-agent, session, user, auth
login-devices/fs-login-devices.php 77% from 13 tests
The main file in "FS Login Devices" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("8.0" instead of "7.3")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.9" instead of "5.6")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("login-devices.php" instead of "fs-login-devices.php")
Code Analysis Passed 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 plugin1,076 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 244 | 292 | 1,065 |
JSON | 2 | 0 | 0 | 9 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 22 | 29.73% |
▷ Public methods | 69 | 93.24% |
▷ Protected methods | 2 | 2.70% |
▷ Private methods | 3 | 4.05% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 11 | |
▷ Global constants | 4 | 36.36% |
▷ Class constants | 7 | 63.64% |
▷ Public constants | 7 | 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
There were not PNG files found in your plugin