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.01MB] [CPU: ▼4.32ms] Passed 4 tests
Server-side resources used by Ana Chatbot
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 35.65 ▼2.60 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.31 ▼2.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.29 ▼1.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.54 ▼10.46 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.11 ▲7.32 |
Server storage [IO: ▲13.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 43 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_userdetails |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Ana Chatbot
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,722 ▼24 | 43.15 ▲28.39 | 530.11 ▲528.26 | 42.23 ▼4.23 |
Dashboard /wp-admin | 2,218 ▲30 | 5.86 ▲0.82 | 98.03 ▼17.56 | 72.82 ▲31.67 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.99 ▲0.03 | 35.52 ▼6.19 | 33.85 ▲3.29 |
Add New Post /wp-admin/post-new.php | 1,681 ▲148 | 22.00 ▼1.25 | 722.40 ▲70.72 | 57.48 ▲11.99 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.04 | 96.54 ▼5.70 | 75.00 ▲31.17 |
Uninstaller [IO: ▲0.02MB] [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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/ana-chatbot/ANAplugin.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
ana-chatbot/ANAplugin.php 92% from 13 tests
Analyzing the main PHP file in "Ana Chatbot" version 1.0
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ana-chatbot.php" instead of "ANAplugin.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 plugin89,658 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 5,155 | 52,607 | 88,199 |
SVG | 8 | 0 | 5 | 788 |
PHP | 1 | 66 | 32 | 623 |
HTML | 1 | 1 | 0 | 26 |
CSS | 2 | 0 | 0 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 10 | |
▷ Named functions | 10 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ANA/ANAFiles/dist/assets/img/ana-logo-trans.png | 30.03KB | 13.37KB | ▼ 55.47% |
ANA/ANAUploads/ana.png | 12.97KB | 4.62KB | ▼ 64.35% |
ana-logo.png | 12.97KB | 4.62KB | ▼ 64.35% |
ANA/ANAFiles/dist/assets/img/ana-logo.png | 78.49KB | 37.97KB | ▼ 51.63% |
favicon.png | 3.18KB | 0.45KB | ▼ 85.86% |