Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▲3.87ms] Passed 4 tests
Server-side resources used by Expire Users
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 43.74 ▲3.74 |
Dashboard /wp-admin | 3.46 ▲0.15 | 74.86 ▲16.36 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 52.53 ▼1.19 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 99.89 ▲7.70 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.69 ▲5.21 |
Expire Settings /wp-admin/users.php?page=expire_users | 3.28 | 37.15 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Expire Users
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.01 | 1.68 ▼0.02 | 40.70 ▼0.19 |
Dashboard /wp-admin | 2,202 ▲31 | 5.64 ▲0.01 | 93.00 ▲0.07 | 46.74 ▲4.75 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.02 | 39.28 ▲0.12 | 36.73 ▼3.31 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.74 ▼0.76 | 630.89 ▼34.05 | 61.75 ▲2.32 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.27 ▼0.03 | 97.41 ▼13.74 | 41.75 ▼3.85 |
Expire Settings /wp-admin/users.php?page=expire_users | 1,226 | 1.81 | 23.73 | 35.21 |
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-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/expire-users/admin/plugin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/expire-users/includes/shortcodes.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/expire-users/admin/notifications.php on line 44
- > 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/expire-users/admin/notifications.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/expire-users/includes/shortcodes.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/expire-users/admin/notifications.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/expire-users/admin/help.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: expire, login, password, users, roles
expire-users/expire-users.php Passed 13 tests
This is the main PHP file of "Expire Users" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
33 characters long description:
Set expiry dates for user logins.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,101 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 222 | 390 | 1,114 |
PO File | 4 | 326 | 512 | 941 |
CSS | 1 | 8 | 3 | 26 |
JavaScript | 1 | 4 | 2 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 12 | 13.79% |
▷ Public methods | 87 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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 are no PNG files in this plugin