Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/wc-blackbox-integration/wp-woo-blackbox.php+20
Accessing static property blackboxAPIMain::$locale as non static
Server metrics [RAM: ▼1.95MB] [CPU: ▼61.68ms] Passed 4 tests
Analyzing server-side resources used by WC Blackbox Integration - интеграция сервиса непорядочных покупателей Blackbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.42 | 4.35 ▼38.46 |
Dashboard /wp-admin | 2.07 ▼1.28 | 4.99 ▼61.53 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 7.24 ▼38.93 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 5.45 ▼107.81 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 7.33 ▼24.15 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WC Blackbox Integration - интеграция сервиса непорядочных покупателей Blackbox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.31 ▼0.92 | 1.83 ▼0.07 | 40.29 ▼3.43 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲0.82 | 107.16 ▲7.95 | 39.52 ▼2.65 |
Posts /wp-admin/edit.php | 2,089 ▲21 | 1.99 ▼0.18 | 33.56 ▼2.97 | 34.53 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.04 ▲0.37 | 600.28 ▼18.14 | 62.58 ▲18.62 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.36 ▲0.18 | 96.19 ▼7.63 | 41.33 ▼2.42 |
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
- > Notice in wp-content/plugins/wc-blackbox-integration/wp-woo-blackbox.php+20
Accessing static property blackboxAPIMain::$locale as non static
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Accessing static property blackboxAPIMain::$locale as non static in wp-content/plugins/wc-blackbox-integration/wp-woo-blackbox.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-blackbox-integration/modules/hooks.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-blackbox-integration/modules/hooks.php:40
- > PHP Notice
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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: woocommerce, blackbox
wc-blackbox-integration/wp-woo-blackbox.php 92% from 13 tests
"WC Blackbox Integration - интеграция сервиса непорядочных покупателей Blackbox" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-blackbox-integration.php" instead of "wp-woo-blackbox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected151 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 19 | 114 |
PO File | 1 | 333 | 667 | 37 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin