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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 39.65 ▲21.66 |
Dashboard /wp-admin | 3.15 ▲0.10 | 45.92 ▲0.01 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 47.02 ▲4.17 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.09 | 99.64 ▼550.36 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 37.85 ▲5.05 |
All Comments /wp-admin/edit-comments.php | 3.16 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,907 ▲311 | 16.45 ▲0.59 | 16.87 ▲6.65 | 44.21 ▼4.31 |
Dashboard /wp-admin | 2,998 ▲67 | 5.85 ▼0.15 | 142.92 ▼4.87 | 110.13 ▼6.23 |
Posts /wp-admin/edit.php | 2,764 ▲25 | 2.71 ▲0.01 | 67.12 ▼2.72 | 86.50 ▼8.44 |
Add New Post /wp-admin/post-new.php | 1,700 ▲28 | 18.74 ▼0.06 | 405.65 ▲23.12 | 106.32 ▼0.52 |
Media Library /wp-admin/upload.php | 1,832 ▲22 | 5.02 ▼0.01 | 158.96 ▼10.61 | 124.83 ▲9.73 |
Simple Ajax Insert Comments Lite /wp-admin/simple-ajax-insert-comments.php | 26 | 0.90 | 0.07 | 11.90 |
All Comments /wp-admin/edit-comments.php | 2,436 | 2.90 | 63.41 | 88.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
- > PHP Fatal error
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:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
- Screenshots: These screenshots need descriptions #4, #5 in simple-ajax-insert-comments-lite/assets to your readme.txt
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 59 | 31 | 976 |
PHP | 3 | 127 | 123 | 773 |
JavaScript | 5 | 28 | 25 | 137 |
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 code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/icon_comment.png | 1.97KB | 1.73KB | ▼ 12.46% |
css/images/icono_saic.png | 1.00KB | 0.58KB | ▼ 41.22% |