84% ugc-nofollow-comments

Code Review | UGC NoFollow Comments

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

About plugin

  • Plugin page: ugc-nofollow-comm...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.0
  • WordPress version: 6.3.1
  • First release: Sep 19, 2019
  • Latest release: Jul 2, 2022
  • Number of updates: 10
  • Update frequency: every 101.7 days
  • Top authors: aftabmuni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.67ms] Passed 4 tests

An overview of server-side resources used by UGC NoFollow Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.81 ▼3.05
Dashboard /wp-admin3.31 ▲0.0145.63 ▼2.00
Posts /wp-admin/edit.php3.36 ▲0.0146.89 ▲2.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.91 ▼11.88
Media Library /wp-admin/upload.php3.24 ▲0.0131.68 ▲2.27

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

UGC NoFollow Comments: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.59 ▼0.971.81 ▲0.0842.69 ▲1.38
Dashboard /wp-admin2,206 ▲185.90 ▲0.8499.26 ▼0.0538.37 ▼7.19
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0138.72 ▼2.4634.40 ▲3.46
Add New Post /wp-admin/post-new.php1,534 ▼823.30 ▲0.11651.29 ▼8.5856.68 ▼1.10
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.1094.02 ▼7.3340.58 ▼2.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ugc-nofollow-comments/ugc-nofollow-comments.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: add ugc in rel attribute, nofollow ugc in comments, ugc nofollow backlink

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

"UGC NoFollow Comments" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
105 characters long description:
This plugin is used to add "ugc" and "nofollow" in "rel" attribute in external links in comments section.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181829

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin