84% duplicate-comment-authors

Code Review | Duplicate Comment Authors

WordPress plugin Duplicate Comment Authors scored 84% from 54 tests.

About plugin

  • Plugin page: duplicate-comment...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2012
  • Latest release: Jan 26, 2014
  • Number of updates: 4
  • Update frequency: every 115.5 days
  • Top authors: benjmay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,373 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by Duplicate Comment Authors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.48 ▼6.84
Dashboard /wp-admin3.31 ▲0.0146.32 ▼0.19
Posts /wp-admin/edit.php3.36 ▲0.0150.08 ▲1.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.21 ▼17.84
Media Library /wp-admin/upload.php3.23 ▲0.0134.30 ▲0.64

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Duplicate Comment Authors: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.095.25 ▲3.1746.98 ▲1.67
Dashboard /wp-admin2,206 ▲185.91 ▲1.07112.03 ▼4.1740.92 ▼0.72
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0940.16 ▼1.1636.27 ▼1.46
Add New Post /wp-admin/post-new.php1,542 ▲2818.14 ▲0.43645.06 ▼62.5451.89 ▼4.18
Media Library /wp-admin/upload.php1,382 ▼64.26 ▲0.0198.41 ▼6.0144.36 ▲1.59

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/duplicate-comment-authors/duplicate-comment-authors.php:17

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

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === duplicate-comment-authors === )
  • Screenshots: Screenshot #1 (What happens when a user posts using a name that is taken by a registered user.) image required
Please take inspiration from this readme.txt

duplicate-comment-authors/duplicate-comment-authors.php Passed 13 tests

The entry point to "Duplicate Comment Authors" version 0.3 is a PHP file that has certain tags in its header comment area
72 characters long description:
Prevents guests leaving comments as same name or email address as users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101230

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.43
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png8.89KB4.95KB▼ 44.35%