Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.37ms] Passed 4 tests
A check of server-side resources used by Ajax Comment Form CST
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.71 ▼3.71 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.16 ▼14.91 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.99 ▲4.87 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.53 ▼13.86 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.17 ▼0.99 |
ACForm CST /wp-admin/options-general.php?page=acform_cst_settings | 3.25 | 28.88 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax Comment Form CST
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.74 ▲0.36 | 1.73 ▼0.02 | 40.96 ▲0.95 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼1.12 | 108.73 ▲3.93 | 38.80 ▼2.95 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.04 | 36.05 ▼0.73 | 32.53 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.45 ▼5.67 | 661.67 ▼33.78 | 52.57 ▼2.60 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.17 ▼0.08 | 95.76 ▼15.60 | 43.49 ▼5.12 |
ACForm CST /wp-admin/options-general.php?page=acform_cst_settings | 909 | 2.05 | 23.03 | 31.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=acform_cst_settings
- > Notice in wp-content/plugins/ajax-comment-form-cst/acform-cst-settings.php+112
Undefined index: captcha
SRP 0% 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ajax-comment-form-cst/captcha/php_captcha.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ajax-comment-form-cst/acform-cst.php:32
- > PHP Notice
Undefined variable: acform_cst_settings in wp-content/plugins/ajax-comment-form-cst/lib/acform-cst-class.php on line 103
- > PHP Notice
Undefined variable: fgcolorhex in wp-content/plugins/ajax-comment-form-cst/captcha/captcha.class.php on line 42
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ajax-comment-form-cst/acform-cst-settings.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-comment-form-cst/lib/acform-cst-class.php:17
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: ajax form, comment form, comment block, ajax comment form, plt...
ajax-comment-form-cst/acform-cst.php 85% from 13 tests
The main PHP file in "Ajax Comment Form CST" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ajax-comment-form-cst.php" instead of "acform-cst.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected671 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 117 | 123 | 528 |
JavaScript | 1 | 24 | 41 | 143 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 2 | 6.45% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 7.76KB | 3.54KB | ▼ 54.47% |
images/plugin_logo.png | 2.34KB | 2.40KB | 0.00% |