Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.83MB] [CPU: ▼9.62ms] Passed 4 tests
Analyzing server-side resources used by AhaChat Messenger Marketing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 25.45 ▼20.78 |
Dashboard /wp-admin | 4.41 ▲1.11 | 57.40 ▲5.71 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 38.45 ▼15.13 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.17 | 92.27 ▼8.27 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 44.94 ▲9.43 |
Server storage [IO: ▲3.58MB] [DB: ▲0.01MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/ahachat-messenger-marketing/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/ahachat-messenger-marketing/banner-772\303\227250.png"
Filesystem: 78 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_ahachat_analytics |
wp_ahachat_shortcodes |
wp_ahachat_analytics_fb |
wp_ahachat_user_ref |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
ahachat_app_enable_status |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by AhaChat Messenger Marketing
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,032 ▲261 | 13.69 ▼0.66 | 15.49 ▲13.49 | 44.24 ▲1.36 |
Dashboard /wp-admin | 2,231 ▲51 | 5.66 ▼0.00 | 101.44 ▲8.62 | 85.68 ▲40.65 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.01 ▲0.05 | 40.46 ▲5.20 | 36.91 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,582 ▲54 | 18.34 ▼4.68 | 731.43 ▲54.17 | 65.38 ▲1.41 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.14 ▼0.03 | 107.19 ▲0.78 | 71.68 ▲25.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 4 tables
- wp_ahachat_shortcodes
- wp_ahachat_user_ref
- wp_ahachat_analytics
- wp_ahachat_analytics_fb
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- ahachat_app_enable_status
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ahachat-messenger-marketing/includes/ahachat_tables-user-audience.php on line 5
- > PHP Warning
Use of undefined constant AHACHAT_ANALYTICS_FB_TABLE - assumed 'AHACHAT_ANALYTICS_FB_TABLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/ahachat-messenger-marketing/includes/ahachat_anylystic.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ahachat-messenger-marketing/includes/ahachat_coupon.php:23
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ahachat-messenger-marketing/includes/ahachat_tables-user-audience.php on line 5
- > PHP Warning
Use of undefined constant AHACHAT_ANALYTICS_TABLE - assumed 'AHACHAT_ANALYTICS_TABLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/ahachat-messenger-marketing/includes/ahachat_anylystic.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ahachat-messenger-marketing/includes/facebook-api/ahachat_rule.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ahachat-messenger-marketing/includes/ahachat_settings_fb_api.php:18
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ahachat-messenger-marketing/includes/ahachat_tables-user-audience.php on line 5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ahachat-messenger-marketing/includes/ahachat_tables-user.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ahachat-messenger-marketing/includes/ahachat_shortcode.php:28
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
5 plugin tags: ahachat, chatbot, abandoned cart, messenger, woocommerce
ahachat-messenger-marketing/ahachat.php 92% from 13 tests
This is the main PHP file of "AhaChat Messenger Marketing" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ahachat-messenger-marketing.php" instead of "ahachat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin7,216 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 994 | 1,285 | 4,634 |
PHP | 18 | 456 | 110 | 2,285 |
SVG | 2 | 0 | 1 | 215 |
HTML | 1 | 32 | 0 | 69 |
CSS | 13 | 1 | 14 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 41.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 168.00 |
Average method complexity | 5.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 1 | 0.66% |
▷ Public methods | 151 | 99.34% |
▷ Protected methods | 1 | 0.66% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 1.07MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-9.png | 119.67KB | 47.66KB | ▼ 60.18% |
screenshot-2.png | 174.32KB | 71.01KB | ▼ 59.26% |
screenshot-5.png | 90.90KB | 35.84KB | ▼ 60.57% |
screenshot-1.png | 134.12KB | 56.16KB | ▼ 58.12% |
banner-772×250.png | 61.37KB | 20.39KB | ▼ 66.78% |