79% wp-ajaxify-comments

Code Review | Ajaxify Comments - Lazy Load and No Reload Comments

WordPress plugin Ajaxify Comments - Lazy Load and No Reload Comments scored79%from 54 tests.

About plugin

  • Plugin page: wp-ajaxify-comments
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 14, 2012
  • Latest release: Dec 2, 2023
  • Number of updates: 349
  • Update frequency: every 12.1 days
  • Top authors: janjonas (76.5%)weweave (15.19%)ronalfy (8.88%)

Code review

54 tests

User reviews

89 reviews

Install metrics

4,000+ active /177,596 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Ajaxify Comments - Lazy Load and No Reload Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.17 ▼1.63
Dashboard /wp-admin3.41 ▲0.0647.67 ▼16.62
Posts /wp-admin/edit.php3.46 ▲0.1047.10 ▼2.73
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.58 ▼10.89
Media Library /wp-admin/upload.php3.33 ▲0.1036.41 ▲0.27
Ajaxify Comments /wp-admin/options-general.php?page=ajaxify-comments3.3132.40

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Ajaxify Comments - Lazy Load and No Reload Comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.03 ▼0.331.65 ▼0.0935.67 ▼9.08
Dashboard /wp-admin2,202 ▲225.63 ▼0.0296.33 ▼1.3342.54 ▼5.32
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0541.05 ▲1.2737.09 ▲4.74
Add New Post /wp-admin/post-new.php1,529 ▲323.15 ▼0.03696.49 ▲94.7965.48 ▲15.14
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.0396.28 ▼3.3941.15 ▼3.06
Ajaxify Comments /wp-admin/options-general.php?page=ajaxify-comments1,1184.01146.9940.57

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 16× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-ajaxify-comments/php/Admin/Tabs/Main.php
    • > /wp-content/plugins/wp-ajaxify-comments/php/Admin/Tabs/Selectors.php
    • > /wp-content/plugins/wp-ajaxify-comments/php/Admin/Tabs/Lazy_Load.php
    • > /wp-content/plugins/wp-ajaxify-comments/php/Admin/Tabs/Labels.php
    • > /wp-content/plugins/wp-ajaxify-comments/php/Options.php
    • > /wp-content/plugins/wp-ajaxify-comments/functions.php
    • > /wp-content/plugins/wp-ajaxify-comments/php/Lazy_Load.php
    • > /wp-content/plugins/wp-ajaxify-comments/php/Admin/Tabs/Support.php
    • > /wp-content/plugins/wp-ajaxify-comments/php/Menu_Helper.php
    • > /wp-content/plugins/wp-ajaxify-comments/php/Admin/Tabs/Appearance.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DLXPlugins\\WPAC\\plugin_dir_path() in wp-content/plugins/wp-ajaxify-comments/php/Functions.php:517

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: comments, lazy load, ajax, errors, refresh

wp-ajaxify-comments/wp-ajaxify-comments.php Passed 13 tests

Analyzing the main PHP file in "Ajaxify Comments - Lazy Load and No Reload Comments" version 2.1.1
95 characters long description:
Ajaxify Comments hooks into your current theme and adds AJAX functionality to the comment form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected10,910 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
CSS32091574,240
PHP276111,5383,640
JavaScript184034671,904
PO File183934051,069
JSON20031
SVG260026

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity21.75
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods161
▷ Static methods4829.81%
▷ Public methods15998.76%
▷ Protected methods00.00%
▷ Private methods21.24%
Functions40
▷ Named functions3895.00%
▷ Anonymous functions25.00%
Constants15
▷ Global constants15100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/ajaxify-logo-horizontal.png25.41KB13.80KB▼ 45.70%