90% pryc-wp-add-content-to-comment-form

Code Review | PRyC WP: Add content to comment form

WordPress plugin PRyC WP: Add content to comment form scored90%from 54 tests.

About plugin

  • Plugin page: pryc-wp-add-conte...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2017
  • Latest release: Jun 20, 2023
  • Number of updates: 12
  • Update frequency: every 196.3 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /638 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.38ms] Passed 4 tests

A check of server-side resources used by PRyC WP: Add content to comment form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.04 ▼2.43
Dashboard /wp-admin3.37 ▲0.0646.57 ▲1.08
Posts /wp-admin/edit.php3.48 ▲0.1244.34 ▼4.91
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.74 ▼23.24
Media Library /wp-admin/upload.php3.29 ▲0.0636.22 ▲5.87
PRyC WP: Add content to comment form /wp-admin/options-general.php?page=pryc_wp_add_comment_form_info3.2530.85

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for PRyC WP: Add content to comment form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.15 ▼1.241.75 ▼0.3039.88 ▼0.18
Dashboard /wp-admin2,207 ▲165.84 ▲0.9697.81 ▼3.3438.49 ▼7.36
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0535.51 ▼6.7630.55 ▼8.05
Add New Post /wp-admin/post-new.php1,537 ▼523.24 ▲5.01675.74 ▲58.6351.29 ▼8.40
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.0696.60 ▼4.4342.45 ▼0.84
PRyC WP: Add content to comment form /wp-admin/options-general.php?page=pryc_wp_add_comment_form_info8822.1724.1128.18

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: comment, custom content, wordpress, content

pryc-wp-add-content-to-comment-form/pryc-wp-add-comment-form-info.php 92% from 13 tests

This is the main PHP file of "PRyC WP: Add content to comment form" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pryc-wp-add-content-to-comment-form.php" instead of "pryc-wp-add-comment-form-info.php")

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 detected234 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113150234

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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