10% simple-ajax-insert-comments-lite

Code Review | Simple Ajax Insert Comments Lite

WordPress plugin Simple Ajax Insert Comments Lite scored 10% from 54 tests.

About plugin

  • Plugin page: simple-ajax-inser...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1.1
  • WordPress version: 5.8.1
  • First release: May 6, 2013
  • Latest release: Apr 18, 2015
  • Number of updates: 10
  • Update frequency: every 71.2 days
  • Top authors: maxlopez (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

50+ active / 8,475 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/simple-ajax-insert-comments-lite/inc/saic-functions.php+355
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.10MB] [CPU: ▼135.28ms] Passed 4 tests

Server-side resources used by Simple Ajax Insert Comments Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2139.65 ▲21.66
Dashboard /wp-admin3.15 ▲0.1045.92 ▲0.01
Posts /wp-admin/edit.php3.21 ▲0.1047.02 ▲4.17
Add New Post /wp-admin/post-new.php5.53 ▲0.0999.64 ▼550.36
Media Library /wp-admin/upload.php3.10 ▲0.1037.85 ▲5.05
All Comments /wp-admin/edit-comments.php3.1637.66

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options
saic_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Ajax Insert Comments Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,907 ▲31116.45 ▲0.5916.87 ▲6.6544.21 ▼4.31
Dashboard /wp-admin2,998 ▲675.85 ▼0.15142.92 ▼4.87110.13 ▼6.23
Posts /wp-admin/edit.php2,764 ▲252.71 ▲0.0167.12 ▼2.7286.50 ▼8.44
Add New Post /wp-admin/post-new.php1,700 ▲2818.74 ▼0.06405.65 ▲23.12106.32 ▼0.52
Media Library /wp-admin/upload.php1,832 ▲225.02 ▼0.01158.96 ▼10.61124.83 ▲9.73
Simple Ajax Insert Comments Lite /wp-admin/simple-ajax-insert-comments.php260.900.0711.90
All Comments /wp-admin/edit-comments.php2,4362.9063.4188.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 3× 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/simple-ajax-insert-comments-lite/simple-ajax-insert-comments-lite.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-ajax-insert-comments-lite/inc/saic-options-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-ajax-insert-comments-lite/inc/saic-functions.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/simple-ajax-insert-comments.php
    • > Network (severe)
    wp-admin/simple-ajax-insert-comments.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

simple-ajax-insert-comments-lite/simple-ajax-insert-comments-lite.php 92% from 13 tests

The main PHP script in "Simple Ajax Insert Comments Lite" version 1.2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 281 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,886 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS25931976
PHP3127123773
JavaScript52825137

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/icon_comment.png1.97KB1.73KB▼ 12.46%
css/images/icono_saic.png1.00KB0.58KB▼ 41.22%