84% comment-load-more

Code Review | Comment Load More

WordPress plugin Comment Load More scored84%from 54 tests.

About plugin

  • Plugin page: comment-load-more
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2016
  • Latest release: Mar 24, 2016
  • Number of updates: 3
  • Update frequency: every 4.7 days
  • Top authors: tempranova (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.10ms] Passed 4 tests

Analyzing server-side resources used by Comment Load More
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.00 ▼8.98
Dashboard /wp-admin3.33 ▲0.0248.08 ▼3.82
Posts /wp-admin/edit.php3.38 ▲0.0257.43 ▲6.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.61 ▼15.42
Media Library /wp-admin/upload.php3.25 ▲0.0233.65 ▼0.18
Comment Load More /wp-admin/options-general.php?page=comment-load-more3.2232.43

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Comment Load More
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.82 ▼0.548.44 ▲6.9438.07 ▼1.02
Dashboard /wp-admin2,202 ▲285.59 ▲0.0189.09 ▲4.7642.85 ▼2.93
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0236.63 ▼1.4233.82 ▲0.72
Add New Post /wp-admin/post-new.php1,531 ▲323.09 ▼0.08646.89 ▼34.5449.42 ▼20.35
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0393.18 ▼14.3741.47 ▼3.50
Comment Load More /wp-admin/options-general.php?page=comment-load-more7811.9922.6124.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined index: comment_index in wp-content/plugins/comment-load-more/get_more_comments.php on line 18
    • > PHP Notice
      Undefined index: parent_id in wp-content/plugins/comment-load-more/get_more_comments.php on line 17
    • > PHP Notice
      Undefined index: post_id in wp-content/plugins/comment-load-more/get_more_comments.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (This shows what nested comments might look like, and the Load More buttons.)
You can take inspiration from this readme.txt

comment-load-more/comment_load_more.php 92% from 13 tests

"Comment Load More" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("comment-load-more.php" instead of "comment_load_more.php")

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
No dangerous file extensions were detected233 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP426112164
JavaScript132163
CSS1036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png93.72KB27.19KB▼ 70.99%