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.01MB] [CPU: ▼294.90ms] Passed 4 tests
Analyzing server-side resources used by Comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.40 | 91.43 ▲71.62 |
Dashboard /wp-admin | 3.42 ▲0.02 | 36.31 ▼12.09 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 44.54 ▼1.59 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 97.50 ▼1,164.59 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.07 ▼1.34 |
All Comments /wp-admin/edit-comments.php | 3.32 | 30.36 |
Settings /wp-admin/edit-comments.php?page=comments-customizer | 3.27 | 28.97 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Comments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲49 | 16.05 ▲0.28 | 6.20 ▲0.45 | 2.76 ▲0.36 |
Dashboard /wp-admin | 2,893 ▲35 | 6.14 ▼0.04 | 137.21 ▲1.79 | 158.67 ▼4.15 |
Posts /wp-admin/edit.php | 2,713 ▲22 | 3.23 ▼0.01 | 64.95 ▼3.64 | 141.99 ▼3.36 |
Add New Post /wp-admin/post-new.php | 1,676 ▼22 | 22.80 ▲0.83 | 450.54 ▲27.90 | 184.92 ▲13.65 |
Media Library /wp-admin/upload.php | 1,723 ▲25 | 5.56 ▲0.04 | 139.67 ▼20.11 | 202.50 ▲3.68 |
All Comments /wp-admin/edit-comments.php | 2,396 | 3.40 | 62.13 | 142.92 |
Settings /wp-admin/edit-comments.php?page=comments-customizer | 1,003 | 2.40 | 59.93 | 121.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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 | 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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Comments_Main' not found in wp-content/plugins/advanced-comments/frontend/comments_frontend.php:3
- > PHP Fatal error
Uncaught Error: Class 'Comments_Main' not found in wp-content/plugins/advanced-comments/admin/comments_admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% 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: comment, comment form, commenting, comments
advanced-comments/comments.php 92% from 13 tests
The main PHP file in "Comments" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-comments.php" instead of "comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin117 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 43 | 101 | 117 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin