84% wp-ugc-comments

Code Review | WP UGC Comments

WordPress plugin WP UGC Comments scored 84% from 54 tests.

About plugin

  • Plugin page: wp-ugc-comments
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2019
  • Latest release: Oct 23, 2019
  • Number of updates: 5
  • Update frequency: every 8.4 days
  • Top authors: timvaniersel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.40ms] Passed 4 tests

Analyzing server-side resources used by WP UGC Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.95 ▼3.45
Dashboard /wp-admin3.31 ▲0.0145.79 ▼1.48
Posts /wp-admin/edit.php3.36 ▲0.0044.26 ▼3.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.57 ▼5.15
Media Library /wp-admin/upload.php3.23 ▲0.0036.03 ▲1.52

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP UGC Comments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.104.52 ▲2.8541.46 ▼0.22
Dashboard /wp-admin2,200 ▲95.84 ▲0.96102.12 ▼6.7040.02 ▼6.86
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0834.76 ▼5.6631.13 ▼5.50
Add New Post /wp-admin/post-new.php1,533 ▼023.51 ▲0.35672.51 ▼93.1257.40 ▼6.31
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.03105.25 ▼9.3744.46 ▼4.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-ugc-comments/wp-ugc-comments.php:15

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: seo, ugc, comments

wp-ugc-comments/wp-ugc-comments.php Passed 13 tests

The primary PHP file in "WP UGC Comments" version 1.00 is used by WordPress to initiate all plugin functionality
62 characters long description:
Adds the "ugc" attribute to links in comments and author URLs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13109

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin