78% comment-signature

Code Review | Comment Signature

WordPress plugin Comment Signature scored 78% from 54 tests.

About plugin

  • Plugin page: comment-signature
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.4
  • WordPress version: 6.3.1
  • First release: Dec 19, 2013
  • Latest release: Aug 5, 2015
  • Number of updates: 25
  • Update frequency: every 23.8 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 2,213 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.04MB] [CPU: ▼7.15ms] Passed 4 tests

A check of server-side resources used by Comment Signature
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.77 ▼6.83
Dashboard /wp-admin3.34 ▲0.0446.05 ▼5.09
Posts /wp-admin/edit.php3.39 ▲0.0444.91 ▼4.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.65 ▼12.44
Media Library /wp-admin/upload.php3.26 ▲0.0435.73 ▲2.82
Comment Signature /wp-admin/options-general.php?page=comment-signature/comment-signature.php3.2130.26

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Comment Signature
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.70 ▼0.851.81 ▼0.2846.16 ▼0.55
Dashboard /wp-admin2,212 ▲244.86 ▼0.04110.98 ▼2.8238.16 ▼12.67
Posts /wp-admin/edit.php2,095 ▲92.00 ▼0.0134.32 ▼1.9133.85 ▼2.63
Add New Post /wp-admin/post-new.php1,535 ▼923.33 ▲4.81621.20 ▼27.9453.88 ▼13.57
Media Library /wp-admin/upload.php1,397 ▲124.20 ▼0.0295.76 ▼5.4940.58 ▼2.70
Comment Signature /wp-admin/options-general.php?page=comment-signature/comment-signature.php9151.7425.5727.91

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=comment-signature/comment-signature.php
    • > Notice in wp-content/plugins/comment-signature/comment-signature.php+127
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-signature/comment-signature.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Option screen on Profile.), #2 (Output screen with Signature added.), #3 (Adding Color and Font size)
You can look at the official readme.txt

comment-signature/comment-signature.php Passed 13 tests

The main PHP script in "Comment Signature" version 2.2 is automatically included on every request by WordPress
96 characters long description:
Comment Signature provides easy way to add user's signature who already registered on that site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin956 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113837822
PHP13313134

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png38.03KB13.88KB▼ 63.51%
js/hv.png2.80KB7.32KB0.00%
js/hs.png2.62KB7.54KB0.00%
screenshot-3.png46.51KB20.30KB▼ 56.35%
screenshot-2.png28.12KB10.53KB▼ 62.54%