78% comments-list-building

Code Review | Comments List Building for WordPress

WordPress plugin Comments List Building for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: comments-list-bui...
  • Plugin version: 4.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Apr 23, 2017
  • Latest release: Apr 20, 2023
  • Number of updates: 38
  • Update frequency: every 57.6 days
  • Top authors: Tobias_Conrad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,194 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.64MB] [CPU: ▼29.36ms] Passed 4 tests

Server-side resources used by Comments List Building for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.61 ▲0.73
Dashboard /wp-admin3.30 ▼0.0433.00 ▼27.43
Posts /wp-admin/edit.php3.38 ▲0.0341.07 ▼8.13
Add New Post /wp-admin/post-new.php3.26 ▼2.6333.93 ▼74.85
Media Library /wp-admin/upload.php3.31 ▲0.0829.27 ▼7.04
Comment ListBuilder /wp-admin/options-general.php?page=listbuilding3.2829.16

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
Optionswplistbuilder

Browser metrics Passed 4 tests

A check of browser resources used by Comments List Building for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.25 ▼1.151.53 ▼0.2539.59 ▼3.84
Dashboard /wp-admin2,218 ▲334.89 ▼0.96106.75 ▲5.8540.23 ▼2.02
Posts /wp-admin/edit.php2,600 ▲5112.06 ▲0.0637.03 ▲1.9531.65 ▼5.52
Add New Post /wp-admin/post-new.php6,547 ▲5,02720.04 ▼3.11905.06 ▲211.4666.95 ▲10.47
Media Library /wp-admin/upload.php1,398 ▲74.25 ▲0.0599.70 ▲1.8844.06 ▲1.91
Comment ListBuilder /wp-admin/options-general.php?page=listbuilding1,6846.63126.4660.36

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • Optionswplistbuilder
    • widget_theysaidso_widget
    • widget_recent-posts

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+1679
    Trying to get property 'ID' of non-object
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+617
    Undefined index: clb_pt_post
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+658
    Undefined index: clb_pr_post
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+617
    Undefined index: clb_pt_page
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+658
    Undefined index: clb_pr_page
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+617
    Undefined index: clb_pt_attachment
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+658
    Undefined index: clb_pr_attachment
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+811
    Undefined index: klicktippCheckboxText
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+814
    Undefined index: listbuilder_privacy_url
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/view/admin-settings.phtml+29
    Undefined index: listbuilder-plugin-active
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+812
    Undefined index: klicktippCheckboxChecked
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+813
    Undefined index: klicktippAddSubscriberWithoutRelease
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+805
    Undefined variable: post_id
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+808
    Undefined index: klicktippAdditionalText
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+809
    Undefined index: autoresponderCode
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+810
    Undefined index: autoresponderHidden
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+815
    Undefined index: klicktippOptInID
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+816
    Undefined index: klicktippOptInName
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+817
    Undefined index: klicktippTag
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+818
    Undefined index: klicktippTagID
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+819
    Undefined index: autoresponderUrl
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+820
    Undefined index: autoresponderName
    • > GET request to /wp-admin/options-general.php?page=listbuilding
    • > Notice in wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php+821
    Undefined index: autoresponderEmail

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/comments-list-building/inc/klick-tipp-listbuilding.class.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: There are too many tags (72 tag instead of maximum 10)
You can take inspiration from this readme.txt

comments-list-building/comments-list-building.php 92% from 13 tests

The main file in "Comments List Building for WordPress" v. 4.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin2,873 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP101,4443882,342
JavaScript3260242
PO File17888238
CSS23351

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity124.33
▷ Minimum class complexity1.00
▷ Maximum class complexity256.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods81
▷ Static methods00.00%
▷ Public methods5871.60%
▷ Protected methods22.47%
▷ Private methods2125.93%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected