Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▲3.35ms] Passed 4 tests
Server-side resources used by Blanka private label beauty & skincare products app for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.14 ▼0.01 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.72 ▲3.14 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.15 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 93.12 ▲11.85 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.42 ▲8.80 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Blanka private label beauty & skincare products app for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲145 | 14.11 ▼0.27 | 4.81 ▲2.70 | 38.82 ▼2.47 |
Dashboard /wp-admin | 2,219 ▲64 | 4.94 ▼0.74 | 99.57 ▼1.68 | 100.27 ▲60.04 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.04 ▲0.04 | 37.65 ▼3.44 | 40.84 ▲5.02 |
Add New Post /wp-admin/post-new.php | 1,684 ▲151 | 22.33 ▼0.81 | 595.79 ▼62.03 | 46.51 ▼7.16 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.20 ▼0.09 | 97.91 ▼0.15 | 85.48 ▲41.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 0% 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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/blanka/public/partials/blanka-public-display.php
- > /wp-content/plugins/blanka/admin/partials/blanka-admin-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
constant(): Couldn't find constant BLANKA_API in wp-content/plugins/blanka/includes/class-blanka-admin-dashboard.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/blanka/includes/class-blanka-admin-dashboard.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/blanka/includes/class-blanka-admin-dashboard-error.php:19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Requires at least: Invalid version format
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
blanka/blanka.php Passed 13 tests
The principal PHP file in "Blanka private label beauty & skincare products app for WooCommerce" v. 1.0.6 is loaded by WordPress automatically on each request
46 characters long description:
Connects your Blanka account with WooCommerce.
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
Success! There were no dangerous files found in this plugin395 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 205 | 546 | 270 |
CSS | 2 | 20 | 8 | 105 |
SVG | 1 | 0 | 1 | 14 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 3 | 12.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
10 PNG files occupy 0.34MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/woocommerce.png | 22.53KB | 11.97KB | ▼ 46.87% |
assets/images/green-checkbox.png | 0.96KB | 0.61KB | ▼ 36.27% |
assets/images/connection_icon.png | 0.87KB | 0.52KB | ▼ 40.36% |
assets/images/screenshot-2.png | 94.17KB | 25.70KB | ▼ 72.71% |
assets/images/blanka-menu-icon.png | 15.36KB | 6.27KB | ▼ 59.17% |