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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼11.03ms] Passed 4 tests
Analyzing server-side resources used by wordpressAjaxComments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 40.72 ▼0.33 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.27 ▼18.17 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.00 ▲4.46 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.07 ▼23.22 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.79 ▼2.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by wordpressAjaxComments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.48 ▼1.11 | 8.80 ▲7.17 | 43.88 ▼1.64 |
Dashboard /wp-admin | 2,195 ▲18 | 5.51 ▼0.17 | 81.23 ▼21.40 | 41.07 ▼1.99 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 39.42 ▼0.79 | 34.63 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.08 ▲4.94 | 637.93 ▼25.71 | 54.91 ▼13.55 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.14 ▼0.05 | 95.69 ▼20.36 | 45.34 ▼2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Org_Heigl\\Wordpress\\AjaxComment\\Validator\\ValidatorInterface' not found in wp-content/plugins/ajaxcomments/src/Validator/UsernameFieldValidator.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajaxcomments/index.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Org_Heigl\\Wordpress\\AjaxComment\\Validator\\ValidatorInterface' not found in wp-content/plugins/ajaxcomments/src/Validator/EmailFieldValidator.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Org_Heigl\\Wordpress\\AjaxComment\\Validator\\ValidatorInterface' not found in wp-content/plugins/ajaxcomments/src/Validator/CommentFieldValidator.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: inline error, ajax, comments, comment
ajaxcomments/index.php 69% from 13 tests
"wordpressAjaxComments" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ajaxcomments.php" instead of "index.php")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin398 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 73 | 291 | 287 |
JavaScript | 1 | 4 | 8 | 71 |
Markdown | 1 | 9 | 0 | 23 |
CSS | 1 | 3 | 3 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 3.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 69.23% |
▷ Protected methods | 4 | 30.77% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin