Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.36ms] Passed 4 tests
This is a short check of server-side resources used by Woo Swish e-commerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.71 ▲2.30 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.05 ▼11.54 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.36 ▼0.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.07 ▲6.36 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.59 ▼3.80 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Woo Swish e-commerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▲0.14 | 1.80 ▲0.03 | 38.43 ▲0.37 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▼0.05 | 94.45 ▲0.15 | 43.60 ▼3.79 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▼0.05 | 38.19 ▼3.04 | 37.53 ▲1.74 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.13 ▼0.44 | 601.00 ▼112.41 | 61.11 ▲6.45 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.01 | 97.92 ▼9.80 | 42.34 ▼4.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/woo-swish-e-commerce/classes/templates/swish-wait-page.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: swish, swish-handel, woocommerce, ecommerce, payment
woo-swish-e-commerce/woo-swish-e-commerce.php 85% from 13 tests
This is the main PHP file of "Woo Swish e-commerce" version 3.6.2, 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:
- Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "4.0")
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
No dangerous file extensions were detected3,293 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 794 | 1,033 | 2,809 |
JavaScript | 3 | 57 | 4 | 187 |
CSS | 2 | 30 | 22 | 168 |
SVG | 2 | 0 | 2 | 88 |
JSON | 1 | 0 | 0 | 41 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 163 | |
▷ Static methods | 55 | 33.74% |
▷ Public methods | 138 | 84.66% |
▷ Protected methods | 1 | 0.61% |
▷ Private methods | 24 | 14.72% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 17 | |
▷ Global constants | 4 | 23.53% |
▷ Class constants | 13 | 76.47% |
▷ Public constants | 13 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.63MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Swish_Logo_Secondary_RGB.png | 143.60KB | 69.98KB | ▼ 51.26% |
assets/images/Swish_Logo_Circle.png | 150.20KB | 55.35KB | ▼ 63.15% |
assets/images/Swish_Logo_Primary_RGB.png | 252.08KB | 156.04KB | ▼ 38.10% |
assets/images/BjornTech_logo_small.png | 84.40KB | 39.40KB | ▼ 53.32% |
assets/images/Swish_Logo_Text.png | 17.32KB | 8.94KB | ▼ 48.37% |