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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.65ms] Passed 4 tests
Server-side resources used by FS Disable Users
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.16 ▼1.52 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.86 ▼6.26 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.18 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.59 ▼5.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 29.75 ▼5.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
FS Disable Users: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.19 | 1.84 ▲0.11 | 40.46 ▼3.23 |
Dashboard /wp-admin | 2,203 ▲15 | 4.91 ▼1.03 | 108.55 ▼9.84 | 41.87 ▼3.31 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.01 | 39.38 ▲4.39 | 34.01 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.15 ▼0.02 | 629.03 ▼16.92 | 51.51 ▲0.16 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.25 ▲0.03 | 93.59 ▼4.37 | 39.39 ▼4.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/fs-disable-users/fs-disable-users.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Connector' not found in wp-content/plugins/fs-disable-users/src/WP/Stream/Connectors/DisableUsersConnector.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Fsylum\\DisableUsers\\Contracts\\Service' not found in wp-content/plugins/fs-disable-users/src/WP/User.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Fsylum\\DisableUsers\\Contracts\\Service' not found in wp-content/plugins/fs-disable-users/src/WP/Stream/Stream.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Fsylum\\DisableUsers\\Contracts\\Service' not found in wp-content/plugins/fs-disable-users/src/WP/Asset.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Fsylum\\DisableUsers\\Contracts\\Service' not found in wp-content/plugins/fs-disable-users/src/WP/Auth.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: user
fs-disable-users/fs-disable-users.php 77% from 13 tests
The main PHP script in "FS Disable Users" version 1.1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
- Requires PHP: Required version does not match the one declared in readme.txt ("8.0" instead of "7.3")
- Requires at least: Required version does not match the one declared in readme.txt ("5.9" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin939 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 222 | 294 | 930 |
JSON | 2 | 0 | 0 | 8 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 21 | 30.43% |
▷ Public methods | 66 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.35% |
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 are no PNG files in this plugin