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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.10ms] Passed 4 tests
Analyzing server-side resources used by CC-Disable-Users
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.33 ▼3.55 |
Dashboard /wp-admin | 3.41 ▲0.10 | 57.07 ▲7.95 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.30 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 97.02 ▼3.32 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.33 ▼0.43 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CC-Disable-Users
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.75 ▲0.40 | 1.78 ▼0.04 | 41.48 ▼3.62 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▼0.01 | 85.61 ▼3.34 | 38.91 ▼4.85 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.97 ▼0.02 | 39.08 ▲0.31 | 33.16 ▼5.40 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.23 ▲0.12 | 659.73 ▼58.02 | 51.91 ▼12.66 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.17 ▼0.14 | 105.40 ▼5.24 | 44.61 ▲0.40 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (**User Profile** - Restrict wp-admin access for selected user.), #2 (**Users List** - See which users have disabled accounts.), #3 (**User Login** - Prevent disabled users to login.)
cc-disable-users/plugin.php 92% from 13 tests
The entry point to "CC-Disable-Users" version 1.2.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cc-disable-users.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected429 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 122 | 131 | 326 |
JSON | 2 | 0 | 0 | 64 |
PO File | 1 | 5 | 7 | 28 |
Markdown | 1 | 5 | 0 | 8 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 6 | 15.79% |
▷ Public methods | 26 | 68.42% |
▷ Protected methods | 12 | 31.58% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 12.98KB | 5.48KB | ▼ 57.74% |
screenshot-3.png | 12.87KB | 6.97KB | ▼ 45.85% |
screenshot-1.png | 18.38KB | 6.29KB | ▼ 65.78% |