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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.47ms] Passed 4 tests
Analyzing server-side resources used by AIcomments - комментарии и отзывы ChatGPT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.64 ▼4.81 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.17 ▼1.24 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.38 ▲1.87 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 95.53 ▼5.71 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.44 ▲4.55 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
_neyro_comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
AIcomments - комментарии и отзывы ChatGPT: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.23 ▼1.16 | 1.82 ▲0.01 | 40.78 ▼5.54 |
Dashboard /wp-admin | 2,222 ▲31 | 5.90 ▲1.03 | 99.80 ▼16.26 | 39.33 ▼9.05 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.04 | 37.97 ▼3.89 | 35.83 ▲4.25 |
Add New Post /wp-admin/post-new.php | 1,547 ▲22 | 23.30 ▼0.04 | 621.88 ▲23.91 | 56.21 ▲1.74 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.18 ▼0.05 | 95.93 ▼3.01 | 40.20 ▼1.91 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- _neyro_comments
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/aicomments/tpl/stats.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aicomments/class.wpai.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/aicomments/tpl/options.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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: reviews, neural network, comments, ai
aicomments/index.php 77% from 13 tests
The entry point to "AIcomments - комментарии и отзывы ChatGPT" version 1.2.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aicomments.php" instead of "index.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,004 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 87 | 6 | 442 |
PHP | 4 | 103 | 9 | 359 |
JavaScript | 1 | 36 | 0 | 117 |
PO File | 1 | 30 | 30 | 86 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 61.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 38.89% |
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
7 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assetst/css/images/check.png | 1.11KB | 0.24KB | ▼ 78.30% |
assetst/css/images/comment.png | 2.38KB | 1.47KB | ▼ 38.00% |
assetst/css/images/arrow.png | 1.11KB | 0.29KB | ▼ 73.71% |
assetst/css/images/doc.png | 1.52KB | 0.66KB | ▼ 56.24% |
assetst/css/images/active.png | 1.10KB | 0.25KB | ▼ 77.28% |