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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼12.75ms] Passed 4 tests
Analyzing server-side resources used by WS Comments Hider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.90 ▲2.08 |
Dashboard /wp-admin | 3.34 ▼0.01 | 50.28 ▼20.50 |
Posts /wp-admin/edit.php | 3.35 ▼0.00 | 47.95 ▼3.68 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.93 ▼28.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.05 ▲7.53 |
All Comments /wp-admin/edit-comments.php | 3.31 | 39.37 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WS Comments Hider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 13.18 ▼1.00 | 5.37 ▲3.52 | 42.61 ▲0.95 |
Dashboard /wp-admin | 2,190 ▼13 | 5.86 ▲0.95 | 97.87 ▼11.74 | 39.22 ▼2.59 |
Posts /wp-admin/edit.php | 1,922 ▼181 | 2.04 ▼0.01 | 36.26 ▼19.67 | 33.63 ▼14.22 |
Add New Post /wp-admin/post-new.php | 1,516 ▼17 | 23.28 ▼0.18 | 661.77 ▲6.06 | 50.58 ▼0.25 |
Media Library /wp-admin/upload.php | 1,366 ▼34 | 4.22 ▼0.01 | 112.70 ▼0.42 | 50.43 ▲2.63 |
All Comments /wp-admin/edit-comments.php | 1,769 | 2.28 | 37.17 | 36.06 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: comments, admin, access, closed, administration
ws-comments-hider/ws-comments-hider.php Passed 13 tests
The main PHP script in "WS Comments Hider" version 1.0.1 is automatically included on every request by WordPress
51 characters long description:
Hide comments functionality in frontend and backend
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
No dangerous file extensions were detected119 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 14 | 11 | 67 |
PO File | 1 | 9 | 11 | 37 |
Markdown | 1 | 14 | 0 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin