Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼1.40ms] Passed 4 tests
Analyzing server-side resources used by AI Content Writing and Chat with ChatGPT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 44.24 ▲2.61 |
Dashboard /wp-admin | 3.82 ▲0.48 | 61.36 ▼3.93 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 56.98 ▲5.44 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.88 | 100.00 ▼9.71 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 44.12 ▲5.48 |
Server storage [IO: ▲3.63MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 132 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_asnp_ewhatsapp_ai_content_layout |
wp_asnp_ewhatsapp_whatsapp |
wp_asnp_ewhatsapp_account |
wp_asnp_ewhatsapp_ai_image_layout |
New WordPress options |
---|
widget_recent-posts |
asnp_ewhatsapp_version |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
asnp_ewhatsapp_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AI Content Writing and Chat with ChatGPT
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,113 ▲352 | 14.28 ▼0.08 | 2.12 ▲0.26 | 52.50 ▲6.06 |
Dashboard /wp-admin | 2,522 ▲345 | 5.52 ▼0.02 | 90.99 ▼14.20 | 81.37 ▲34.78 |
Posts /wp-admin/edit.php | 2,424 ▲324 | 1.98 ▼0.03 | 40.41 ▲3.49 | 35.12 ▼0.10 |
Add New Post /wp-admin/post-new.php | 6,902 ▲5,376 | 23.79 ▲0.77 | 1,072.52 ▲371.60 | 41.68 ▼7.05 |
Media Library /wp-admin/upload.php | 1,727 ▲327 | 4.22 ▼0.01 | 104.70 ▼10.51 | 63.91 ▲19.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables detected upon uninstall: 4 tables
- wp_asnp_ewhatsapp_whatsapp
- wp_asnp_ewhatsapp_account
- wp_asnp_ewhatsapp_ai_image_layout
- wp_asnp_ewhatsapp_ai_content_layout
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- asnp_ewhatsapp_version
- widget_recent-posts
- asnp_ewhatsapp_db_version
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'AsanaPlugins\\WhatsApp\\Registry\\AbstractDependencyType' not found in wp-content/plugins/live-chat-button/src/Registry/SharedType.php:15
- > PHP Fatal error
Uncaught Error: Class 'AsanaPlugins\\WhatsApp\\Registry\\AbstractDependencyType' not found in wp-content/plugins/live-chat-button/src/Registry/FactoryType.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
live-chat-button/easy-whatsapp.php 77% from 13 tests
The main PHP file in "AI Content Writing and Chat with ChatGPT" ver. 5.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("live-chat-button.php" instead of "easy-whatsapp.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.0")
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
There were no executable files found in this plugin4,634 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 974 | 911 | 4,346 |
SVG | 15 | 0 | 0 | 244 |
JSON | 9 | 0 | 0 | 24 |
JavaScript | 12 | 0 | 26 | 12 |
CSS | 7 | 0 | 1 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 16.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 5 | 12.20% |
▷ Concrete classes | 36 | 87.80% |
▷ Final classes | 1 | 2.78% |
Methods | 220 | |
▷ Static methods | 32 | 14.55% |
▷ Public methods | 189 | 85.91% |
▷ Protected methods | 24 | 10.91% |
▷ Private methods | 7 | 3.18% |
Functions | 43 | |
▷ Named functions | 30 | 69.77% |
▷ Anonymous functions | 13 | 30.23% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.53MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/temp18.png | 29.46KB | 12.24KB | ▼ 58.46% |
assets/images/temp15.png | 32.41KB | 13.00KB | ▼ 59.89% |
assets/images/te1.png | 25.31KB | 10.60KB | ▼ 58.12% |
assets/images/temp20.png | 56.77KB | 22.44KB | ▼ 60.48% |
assets/images/temp19.png | 53.58KB | 20.82KB | ▼ 61.14% |