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.00MB] [CPU: ▼9.19ms] Passed 4 tests
Server-side resources used by JC Ajax Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.39 ▲2.51 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.12 ▼7.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.19 ▼5.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 76.92 ▼23.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.08 ▼0.38 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by JC Ajax Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲164 | 13.52 ▼1.21 | 8.86 ▲7.12 | 43.25 ▼0.87 |
Dashboard /wp-admin | 2,211 ▲33 | 5.75 ▲0.03 | 91.85 ▼11.89 | 41.75 ▼2.30 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.18 ▲0.04 | 38.60 ▲2.55 | 35.63 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,532 ▼6 | 23.25 ▲5.08 | 666.35 ▼3.83 | 52.90 ▼13.91 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.34 ▲0.03 | 95.86 ▼23.97 | 44.38 ▼3.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× 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/jc-ajax-comment/jc-ajax-comment.php:11
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #4, #5 in jc-ajax-comment/assets to your readme.txt
jc-ajax-comment/jc-ajax-comment.php Passed 13 tests
"JC Ajax Comments" version 1.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Posts comments and validates the comment form using Ajax
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin132 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 2 | 6 | 113 |
PHP | 1 | 6 | 8 | 13 |
CSS | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in 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 |
img/close.png | 0.95KB | 1.44KB | 0.00% |
img/bg01.png | 0.91KB | 0.09KB | ▼ 89.56% |