78% wp-side-comments

Code Review | WP Side Comments

WordPress plugin WP Side Comments scored78%from 54 tests.

About plugin

  • Plugin page: wp-side-comments
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9
  • WordPress version: 6.3.1
  • First release: Jul 3, 2014
  • Latest release: Jul 3, 2014
  • Number of updates: 10
  • Update frequency: every 0.5 days
  • Top authors: strategio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,311 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.45 ▲4.90
Dashboard /wp-admin3.39 ▲0.0544.02 ▼16.92
Posts /wp-admin/edit.php3.50 ▲0.1546.43 ▼2.22
Add New Post /wp-admin/post-new.php5.97 ▲0.0982.89 ▼16.93
Media Library /wp-admin/upload.php3.31 ▲0.0835.03 ▼0.65
WPSC /wp-admin/options-general.php?page=wp-side-comments3.2832.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.071.81 ▲0.1244.83 ▲7.73
Dashboard /wp-admin2,199 ▲245.51 ▼0.0781.63 ▼16.0038.39 ▼6.33
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.0032.64 ▼2.5436.92 ▼0.46
Add New Post /wp-admin/post-new.php1,534 ▲823.10 ▲0.20669.64 ▲22.3756.85 ▼1.55
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.02103.97 ▼9.3446.52 ▼2.08
WPSC /wp-admin/options-general.php?page=wp-side-comments8212.0428.0728.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript246,80617,31927,179
CSS136071,190
LESS71341556
Markdown31472390
PHP7141371318
HTML860294
JSON600118
PO File1131548

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 code0.42
Average class complexity21.50
▷ Minimum class complexity10.00
▷ Maximum class complexity33.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods729.17%
▷ Public methods1666.67%
▷ Protected methods00.00%
▷ Private methods833.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
public/assets/vendor/side-comments/support/images/user.png4.13KB0.74KB▼ 82.03%
public/assets/vendor/_side-comments/support/images/user1.png11.33KB3.71KB▼ 67.27%
assets/banner-772x250.png11.50KB5.06KB▼ 56.00%
public/assets/vendor/_side-comments/support/images/user2.png11.29KB3.86KB▼ 65.79%
public/assets/vendor/side-comments/support/images/clay_davis.png29.08KB8.38KB▼ 71.20%