Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲1.13MB] [CPU: ▼4.61ms] Passed 4 tests
Server-side resources used by WebFacing™ - Email Accounts management for cPanel®
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 48.64 ▲4.23 |
Dashboard /wp-admin | 4.67 ▲1.33 | 56.66 ▼7.27 |
Posts /wp-admin/edit.php | 4.79 ▲1.43 | 59.23 ▲12.63 |
Add New Post /wp-admin/post-new.php | 7.26 ▲1.37 | 93.02 ▼28.02 |
Media Library /wp-admin/upload.php | 4.60 ▲1.37 | 56.05 ▲21.96 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WebFacing™ - Email Accounts management for cPanel®
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲66 | 14.60 ▲0.32 | 1.89 ▲0.13 | 43.38 ▼0.65 |
Dashboard /wp-admin | 2,218 ▲37 | 5.55 ▼0.17 | 98.05 ▼10.17 | 46.50 ▲2.75 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.14 ▲0.13 | 36.43 ▼3.26 | 36.32 ▲0.18 |
Add New Post /wp-admin/post-new.php | 6,217 ▲4,691 | 18.77 ▼4.37 | 1,034.35 ▲307.83 | 82.05 ▲23.06 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.18 ▲0.09 | 115.05 ▲12.17 | 54.58 ▲10.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: auto-reply, backup, membership, cpanel, email
wf-cpanel-email-accounts/index.php 85% from 13 tests
"WebFacing™ - Email Accounts management for cPanel®" version 5.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wf-cpanel-email-accounts.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 218 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,769 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 861 | 442 | 5,745 |
JSON | 1 | 0 | 0 | 15 |
JavaScript | 1 | 0 | 1 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 71.64 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 204.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 10 | 71.43% |
▷ Concrete classes | 4 | 28.57% |
▷ Final classes | 0 | 0.00% |
Methods | 151 | |
▷ Static methods | 108 | 71.52% |
▷ Public methods | 128 | 84.77% |
▷ Protected methods | 5 | 3.31% |
▷ Private methods | 18 | 11.92% |
Functions | 85 | |
▷ Named functions | 25 | 29.41% |
▷ Anonymous functions | 60 | 70.59% |
Constants | 12 | |
▷ Global constants | 2 | 16.67% |
▷ Class constants | 10 | 83.33% |
▷ Public constants | 4 | 40.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin