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.45MB] [CPU: ▼1.50ms] Passed 4 tests
Server-side resources used by WebFacing™ - Storage, resource usage and errors in cPanel®
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 39.08 ▼6.50 |
Dashboard /wp-admin | 3.83 ▲0.48 | 48.73 ▼12.18 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 54.57 ▲7.33 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 98.14 ▲5.36 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 41.17 ▲7.44 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WebFacing™ - Storage, resource usage and errors in cPanel®
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲68 | 13.25 ▼1.17 | 4.98 ▲2.97 | 40.55 ▼6.01 |
Dashboard /wp-admin | 2,212 ▲24 | 4.86 ▼1.04 | 100.49 ▼6.08 | 39.10 ▼2.73 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.02 | 41.47 ▲3.97 | 34.51 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.39 ▲0.21 | 657.10 ▼16.00 | 49.52 ▼3.25 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▲0.04 | 97.43 ▼5.13 | 41.43 ▼1.10 |
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
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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 | 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught TypeError: json_decode() expects parameter 1 to be string, null given in wp-content/plugins/wf-cpanel-right-now-site-health/admin/cpanel.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #4 (Dashboard - Resource usage & errors widget) image required
wf-cpanel-right-now-site-health/index.php 77% from 13 tests
"WebFacing™ - Storage, resource usage and errors in cPanel®" version 3.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 360 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wf-cpanel-right-now-site-health.php" instead of "index.php")
- Requires at least: The required version number must match the one declared in readme.txt ("5.7.1" instead of "5.7")
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
No dangerous file extensions were detected1,963 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 336 | 125 | 1,892 |
JavaScript | 1 | 13 | 0 | 71 |
PHP code Passed 2 tests
A short review of 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 | 1.03 |
Average class complexity | 116.75 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 331.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 4 | 100.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 42 | 100.00% |
▷ Public methods | 13 | 30.95% |
▷ Protected methods | 29 | 69.05% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 16 | 43.24% |
▷ Anonymous functions | 21 | 56.76% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin