Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.49MB] [CPU: ▲0.88ms] Passed 4 tests
Analyzing server-side resources used by Spoki - Chat Buttons and WooCommerce Notifications
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 47.86 ▲4.21 |
Dashboard /wp-admin | 3.85 ▲0.54 | 50.29 ▼6.77 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 54.87 ▲7.16 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 93.73 ▼1.06 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 47.65 ▲12.82 |
Seller Notifications /wp-admin/admin.php?page=spoki&tab=seller-notifications | 4.30 | 42.42 |
Abandoned Carts /wp-admin/admin.php?page=spoki&tab=abandoned-carts | 4.30 | 34.37 |
Spoki /wp-admin/admin.php?page=spoki&tab=welcome | 4.30 | 37.16 |
Spoki /wp-admin/admin.php?page=spoki | 4.30 | 38.00 |
Buttons /wp-admin/admin.php?page=spoki&tab=buttons | 4.30 | 40.45 |
Invite a friend /wp-admin/admin.php?page=spoki&tab=invite-a-friend | 4.30 | 39.24 |
Settings /wp-admin/admin.php?page=spoki&tab=settings | 3.96 | 34.84 |
Customer Notifications /wp-admin/admin.php?page=spoki&tab=customer-notifications | 4.30 | 39.09 |
Server storage [IO: ▲2.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
_wp_spoki_setting |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Spoki - Chat Buttons and WooCommerce Notifications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲163 | 13.53 ▼0.76 | 4.99 ▲2.94 | 33.77 ▼13.61 |
Dashboard /wp-admin | 2,298 ▲92 | 5.82 ▲0.94 | 95.19 ▼6.20 | 77.76 ▲31.16 |
Posts /wp-admin/edit.php | 2,180 ▲80 | 2.00 ▲0.01 | 36.92 ▼0.86 | 45.87 ▲10.38 |
Add New Post /wp-admin/post-new.php | 1,749 ▲218 | 22.48 ▼0.66 | 730.55 ▲36.03 | 56.93 ▲2.86 |
Media Library /wp-admin/upload.php | 1,471 ▲68 | 4.23 ▼0.03 | 100.06 ▼3.98 | 80.54 ▲35.58 |
Seller Notifications /wp-admin/admin.php?page=spoki&tab=seller-notifications | 5,076 | 1.76 | 32.74 | 61.70 |
Abandoned Carts /wp-admin/admin.php?page=spoki&tab=abandoned-carts | 5,099 | 1.88 | 33.29 | 70.73 |
Spoki /wp-admin/admin.php?page=spoki&tab=welcome | 5,294 | 1.77 | 35.58 | 74.98 |
Spoki /wp-admin/admin.php?page=spoki | 5,297 | 1.73 | 30.75 | 49.98 |
Buttons /wp-admin/admin.php?page=spoki&tab=buttons | 5,099 | 1.89 | 32.05 | 74.01 |
Invite a friend /wp-admin/admin.php?page=spoki&tab=invite-a-friend | 5,190 | 1.85 | 31.76 | 79.23 |
Settings /wp-admin/admin.php?page=spoki&tab=settings | 5,172 | 1.76 | 32.71 | 42.93 |
Customer Notifications /wp-admin/admin.php?page=spoki&tab=customer-notifications | 5,207 | 1.91 | 32.79 | 72.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- _wp_spoki_setting
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 32 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=spoki&tab=customer-notifications
- > Notice in wp-content/plugins/spoki/spoki.php+860
Undefined index: working_days_times
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+755
Undefined index: zip_code
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+756
Undefined index: province
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+757
Undefined index: country
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+758
Undefined index: route
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+759
Undefined index: city
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+760
Undefined index: vat_number
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+761
Undefined index: vat_name
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+762
Undefined index: c_f
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+763
Undefined index: pec
- > GET request to /wp-admin/admin.php?page=spoki&tab=settings
- > Notice in wp-content/plugins/spoki/spoki.php+764
Undefined index: sid
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/spoki/includes/spoki-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/spoki/components/buttons-info-dialog.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function spoki_has_woocommerce() in wp-content/plugins/spoki/views/html-use-your-phone.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function spoki_has_woocommerce() in wp-content/plugins/spoki/views/html-welcome.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/spoki/widgets/class-elementor-spoki-button.php:9
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/spoki/includes/spoki-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/spoki/views/html-spoki-overview.php:5
- > PHP Notice
Undefined index: current_tab in wp-content/plugins/spoki/views/html-account-overview.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function spoki_has_woocommerce() in wp-content/plugins/spoki/views/html-invite-friend.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function spoki_has_woocommerce() in wp-content/plugins/spoki/views/html-onboarding.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 18 tag instead of maximum 10
spoki/spoki.php 92% from 13 tests
The main PHP script in "Spoki - Chat Buttons and WooCommerce Notifications" version 2.15.11 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
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
Success! There were no dangerous files found in this plugin9,328 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 392 | 390 | 6,272 |
PO File | 2 | 1,047 | 1,237 | 2,070 |
CSS | 5 | 123 | 3 | 667 |
JavaScript | 3 | 32 | 7 | 297 |
SVG | 2 | 0 | 1 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.84 |
Average class complexity | 102.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 315.00 |
Average method complexity | 5.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 83 | |
▷ Static methods | 3 | 3.61% |
▷ Public methods | 78 | 93.98% |
▷ Protected methods | 2 | 2.41% |
▷ Private methods | 3 | 3.61% |
Functions | 18 | |
▷ Named functions | 12 | 66.67% |
▷ Anonymous functions | 6 | 33.33% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
20 PNG files occupy 1.30MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/home-page-button.png | 30.31KB | 17.13KB | ▼ 43.47% |
assets/images/elementor-button-2.png | 51.95KB | 15.12KB | ▼ 70.89% |
assets/images/order-status.png | 138.05KB | 62.68KB | ▼ 54.60% |
assets/images/tracking_example.png | 25.58KB | 7.24KB | ▼ 71.69% |
assets/images/elementor-sections.png | 39.38KB | 11.42KB | ▼ 71.01% |