Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼145.91ms] Passed 4 tests
This is a short check of server-side resources used by WP AJAX Comments Template
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 35.02 ▲0.81 |
Dashboard /wp-admin | 3.11 ▲0.05 | 47.21 ▼3.49 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 42.88 ▼2.20 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 93.13 ▼578.74 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 33.79 ▲3.93 |
All Comments /wp-admin/edit-comments.php | 3.11 | 37.86 |
Configurações /wp-admin/edit-comments.php?page=configuracao-comentario | 3.05 | 28.77 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP AJAX Comments Template
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 16.03 ▲0.63 | 10.16 ▲0.98 | 46.90 ▼2.11 |
Dashboard /wp-admin | 2,993 ▲56 | 5.87 ▼0.12 | 139.19 ▼9.64 | 108.67 ▼12.10 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.73 ▲0.01 | 70.12 ▲4.10 | 80.58 ▼13.83 |
Add New Post /wp-admin/post-new.php | 1,619 ▼2,070 | 18.55 ▲3.48 | 350.92 ▼149.13 | 108.66 ▼8.81 |
Media Library /wp-admin/upload.php | 1,833 ▲23 | 5.04 ▼0.00 | 163.39 ▲9.78 | 111.28 ▲0.57 |
All Comments /wp-admin/edit-comments.php | 2,431 | 2.90 | 69.24 | 87.92 |
Configurações /wp-admin/edit-comments.php?page=configuracao-comentario | 1,152 | 2.09 | 54.13 | 82.18 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit-comments.php?page=configuracao-comentario
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit-comments.php?page=configuracao-comentario
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ajax-comments-template/submenu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ajax-comments-template/submenu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/wp-ajax-comments-template/comments.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ajax-comments-template/ajax.php:140
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings Panel on Administrator Area), #2 (Single post comment area with the plugin activated.)
wp-ajax-comments-template/WP-AJAX-Comments-Template.php 85% from 13 tests
"WP AJAX Comments Template" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 253 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-ajax-comments-template.php" instead of "WP-AJAX-Comments-Template.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected335 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 139 | 32 | 335 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 30.65KB | 11.22KB | ▼ 63.39% |
screenshot-1.png | 23.59KB | 13.01KB | ▼ 44.85% |