84% commenter-data

Code Review | Commenter Data

WordPress plugin Commenter Data scored84%from 54 tests.

About plugin

  • Plugin page: commenter-data
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2014
  • Latest release: Jan 7, 2015
  • Number of updates: 16
  • Update frequency: every 22.5 days
  • Top authors: ankit.gade@rtcamp.com (87.5%)5um17 (18.75%)

Code review

54 tests

User reviews

7 reviews

Install metrics

40+ active /2,894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.97ms] Passed 4 tests

This is a short check of server-side resources used by Commenter Data
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.38 ▲1.46
Dashboard /wp-admin3.37 ▲0.0344.42 ▼13.48
Posts /wp-admin/edit.php3.48 ▲0.1345.79 ▲1.46
Add New Post /wp-admin/post-new.php6.00 ▲0.1181.48 ▼16.40
Media Library /wp-admin/upload.php3.29 ▲0.0735.58 ▲0.53

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Commenter Data
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.24 ▼1.341.65 ▲0.0340.23 ▼0.71
Dashboard /wp-admin2,228 ▲365.87 ▲0.98101.83 ▼3.3170.51 ▲30.78
Posts /wp-admin/edit.php2,111 ▲222.04 ▲0.0140.05 ▲5.3036.01 ▲4.61
Add New Post /wp-admin/post-new.php6,402 ▲4,88827.82 ▲10.34992.16 ▲307.8639.02 ▼23.29
Media Library /wp-admin/upload.php1,410 ▲284.19 ▲0.01111.79 ▲9.3177.53 ▲34.53

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/commenter-data/main.php:13

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: marketing, comment, commentmeta, csv, comments...

commenter-data/main.php 92% from 13 tests

"Commenter Data" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("commenter-data.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin317 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP312631260
JavaScript129244
CSS14813

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.50
▷ Minimum class complexity17.00
▷ Maximum class complexity18.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/commenter.png0.65KB0.65KB0.15%