Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼136.36ms] Passed 4 tests
A check of server-side resources used by ajax Post Comment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.13 | 39.92 ▲14.58 |
Dashboard /wp-admin | 3.08 ▲0.02 | 41.62 ▼6.98 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 49.74 ▲6.47 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 112.22 ▼538.56 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 32.55 ▼6.38 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for ajax Post Comment
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,808 ▲236 | 17.48 ▲1.95 | 32.05 ▲20.74 | 52.34 ▲2.65 |
Dashboard /wp-admin | 2,967 ▲37 | 6.04 ▲0.08 | 154.17 ▲0.08 | 122.35 ▲7.91 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 91.29 ▲25.02 | 117.82 ▲24.89 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.70 ▲0.42 | 401.59 ▼4.67 | 111.71 ▼13.97 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.06 | 160.07 ▲1.80 | 125.70 ▼2.33 |
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 successfully, without leaving any zombie files or tables
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hina-ajax-comment/inc/class-hina-ajax-comment.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hina-ajax-comment/inc/class-hina-ajax-comment.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hina-ajax-comment/inc/class-hina-ajax-comment.php:97
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: rest-api, comment, comments, wp-api, ajax
hina-ajax-comment/hina-ajax-comment.php 85% from 13 tests
This is the main PHP file of "ajax Post Comment" version 0.1-alpha-20161129, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "0.1-alpha-20161129")
- Domain Path: The domain path folder does not exist ("/languages")
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 detected230 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 0 | 4 | 87 |
TypeScript | 1 | 31 | 21 | 87 |
PHP | 3 | 21 | 42 | 56 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 3 | 37.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There are no PNG files in this plugin