Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'KODA\TPay_Plugin\PluginLoader' does not have a method 'create_user'
Server metrics [RAM: ▲0.36MB] [CPU: ▲6.32ms] Passed 4 tests
This is a short check of server-side resources used by BotPay
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 48.87 ▲7.85 |
Dashboard /wp-admin | 3.68 ▲0.38 | 52.48 ▲2.64 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 54.64 ▲7.08 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 100.82 ▲7.69 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 48.59 ▲15.11 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
settings_form |
settings_api |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
BotPay: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.39 ▼0.03 | 1.57 ▼0.19 | 37.26 ▼5.82 |
Dashboard /wp-admin | 2,216 ▲39 | 5.61 ▲0.04 | 81.85 ▼12.00 | 36.61 ▼4.38 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.03 ▲0.01 | 33.82 ▼2.42 | 36.58 ▲1.94 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.25 ▲0.29 | 666.76 ▲10.96 | 54.90 ▲3.07 |
Media Library /wp-admin/upload.php | 1,412 ▲18 | 4.19 ▲0.03 | 97.53 ▲6.28 | 42.96 ▲0.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method KODA\TPay_Plugin\PluginLoader::uninstall() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2 in botpay/assets to your readme.txt
botpay/botpay.php Passed 13 tests
The main PHP file in "BotPay" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
Quick and fast chatbot for Messenger with TPay and Woocommerce integration
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,424 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 565 | 592 | 1,895 |
JSON | 3 | 1 | 0 | 386 |
PO File | 1 | 43 | 43 | 111 |
Markdown | 1 | 26 | 0 | 32 |
CSS | 1 | 0 | 5 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 3 | 25.00% |
Methods | 120 | |
▷ Static methods | 14 | 11.67% |
▷ Public methods | 117 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.50% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin