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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.18ms] Passed 4 tests
Analyzing server-side resources used by WP Side Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.45 ▲4.90 |
Dashboard /wp-admin | 3.39 ▲0.05 | 44.02 ▼16.92 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 46.43 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 82.89 ▼16.93 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.03 ▼0.65 |
WPSC /wp-admin/options-general.php?page=wp-side-comments | 3.28 | 32.62 |
Server storage [IO: ▲2.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 103 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Side Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.07 | 1.81 ▲0.12 | 44.83 ▲7.73 |
Dashboard /wp-admin | 2,199 ▲24 | 5.51 ▼0.07 | 81.63 ▼16.00 | 38.39 ▼6.33 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▼0.00 | 32.64 ▼2.54 | 36.92 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.10 ▲0.20 | 669.64 ▲22.37 | 56.85 ▼1.55 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.02 | 103.97 ▼9.34 | 46.52 ▼2.08 |
WPSC /wp-admin/options-general.php?page=wp-side-comments | 821 | 2.04 | 28.07 | 28.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-side-comments/public/views/public.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-side-comments/admin/views/admin.php:18
- > 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 96% 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
4 plugin tags: comments, comment, side, medium
wp-side-comments/wp-side-comments.php 92% from 13 tests
The primary PHP file in "WP Side Comments" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Git Repository: There should be no Git repositories present in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin30,093 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 24 | 6,806 | 17,319 | 27,179 |
CSS | 13 | 60 | 7 | 1,190 |
LESS | 7 | 134 | 1 | 556 |
Markdown | 3 | 147 | 2 | 390 |
PHP | 7 | 141 | 371 | 318 |
HTML | 8 | 6 | 0 | 294 |
JSON | 6 | 0 | 0 | 118 |
PO File | 1 | 13 | 15 | 48 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 24 | |
▷ Static methods | 7 | 29.17% |
▷ Public methods | 16 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.60MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/vendor/side-comments/support/images/user.png | 4.13KB | 0.74KB | ▼ 82.03% |
public/assets/vendor/_side-comments/support/images/user1.png | 11.33KB | 3.71KB | ▼ 67.27% |
assets/banner-772x250.png | 11.50KB | 5.06KB | ▼ 56.00% |
public/assets/vendor/_side-comments/support/images/user2.png | 11.29KB | 3.86KB | ▼ 65.79% |
public/assets/vendor/side-comments/support/images/clay_davis.png | 29.08KB | 8.38KB | ▼ 71.20% |