78% ajaxed-comments

Code Review | Ajaxed Comments

WordPress plugin Ajaxed Comments scored 78% from 54 tests.

About plugin

  • Plugin page: ajaxed-comments
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8.1
  • WordPress version: 6.3.1
  • First release: May 29, 2013
  • Latest release: Feb 21, 2014
  • Number of updates: 20
  • Update frequency: every 13.5 days
  • Top authors: dfactory (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

80+ active / 7,418 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
Install script ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼3.60ms] Passed 4 tests

Analyzing server-side resources used by Ajaxed Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2940.63 ▲0.86
Dashboard /wp-admin3.60 ▲0.3046.21 ▼2.61
Posts /wp-admin/edit.php3.72 ▲0.3650.24 ▲3.67
Add New Post /wp-admin/post-new.php6.18 ▲0.2993.85 ▼16.32
Media Library /wp-admin/upload.php3.52 ▲0.3039.87 ▲5.72
Ajaxed Comments /wp-admin/options-general.php?page=ajaxed-comments-options3.4735.71

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ajaxed Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲16214.00 ▼0.3911.86 ▲10.2247.06 ▲8.36
Dashboard /wp-admin2,207 ▲224.88 ▼0.03109.87 ▼6.2340.65 ▼2.87
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0240.03 ▼1.4333.87 ▼1.38
Add New Post /wp-admin/post-new.php1,536 ▲323.19 ▲0.13658.50 ▼35.0452.93 ▼2.13
Media Library /wp-admin/upload.php1,389 ▼24.29 ▲0.0593.11 ▼8.6143.17 ▼2.60
Ajaxed Comments /wp-admin/options-general.php?page=ajaxed-comments-options1,8654.26104.4143.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=ajaxed-comments-options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ajaxed-comments-options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ajaxed-comments/ajaxed-comments.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

ajaxed-comments/ajaxed-comments.php 92% from 13 tests

"Ajaxed Comments" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,085 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP2240151911
PO File4381351803
CSS437159789
JavaScript313720582

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity181.00
▷ Minimum class complexity181.00
▷ Maximum class complexity181.00
Average method complexity5.29
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
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

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/icon_sprite.png3.14KB2.30KB▼ 26.70%
css/images/slider_handles.png1.90KB1.31KB▼ 30.90%
images/logo-dfactory.png2.92KB1.92KB▼ 34.20%
css/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
css/images/bg_fallback.png3.63KB0.30KB▼ 91.72%