Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.65ms] Passed 4 tests
Server-side resources used by Chatgen
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.91 ▲5.16 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.69 ▼1.45 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.15 ▼3.17 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.07 ▼2.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.30 ▲0.38 |
Server storage [IO: ▲1.05MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Chatgen
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.24 ▼0.13 | 1.58 ▼0.05 | 39.30 ▼2.63 |
Dashboard /wp-admin | 2,211 ▲31 | 5.65 ▼0.04 | 84.81 ▼3.46 | 69.84 ▲26.22 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▼0.05 | 36.24 ▼0.03 | 32.45 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 23.13 ▼0.56 | 746.76 ▲142.29 | 56.69 ▲7.21 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.19 ▼0.04 | 96.17 ▼7.93 | 60.10 ▲17.08 |
Chatgen /wp-admin/menus.php | 26 | 0.42 | 0.08 | 13.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/chatgen/chatgen.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatgen/includes/menus.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatgen/includes/embed.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatgen/includes/core.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/menus.php
- > Network (severe)
wp-admin/menus.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Chat window - minimized), #2 (Chat widget - maximized), #3 (WordPress settings), #4 (Announcement messages)
- Tags: There are too many tags (40 tag instead of maximum 10)
chatgen/chatgen.php Passed 13 tests
The main PHP script in "Chatgen" version 3.0.1 is automatically included on every request by WordPress
96 characters long description:
Powerful platform that enables companies to launch a bot with minimum effort and maximum effect.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin179 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 30 | 26 | 145 |
Markdown | 1 | 13 | 0 | 18 |
SVG | 1 | 0 | 1 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 1.01MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 316.77KB | 117.15KB | ▼ 63.02% |
screenshot-4.png | 61.63KB | 30.77KB | ▼ 50.08% |
assets/chatgen-icon-16x16-white.png | 2.01KB | 0.55KB | ▼ 72.55% |
screenshot-1.png | 338.09KB | 217.12KB | ▼ 35.78% |
screenshot-2.png | 313.55KB | 168.08KB | ▼ 46.40% |