Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.70MB] [CPU: ▼4.73ms] Passed 4 tests
This is a short check of server-side resources used by Reachu Embed Commerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.68 | 44.06 ▼2.39 |
Dashboard /wp-admin | 3.99 ▲0.68 | 64.60 ▲8.29 |
Posts /wp-admin/edit.php | 4.10 ▲0.75 | 53.93 ▼3.31 |
Add New Post /wp-admin/post-new.php | 6.84 ▲0.95 | 94.64 ▼16.47 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 43.17 ▲3.25 |
Server storage [IO: ▲2.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 80 new files
Database: no new tables, 58 new options
New WordPress options |
---|
outshifter_blocks_supplier_logo_shop |
outshifter_blocks_g_analytics |
outshifter_blocks_shop_text_selected |
outshifter_blocks_add_shop_url |
outshifter_blocks_saved_media_images |
outshifter_blocks_text_icon_color |
outshifter_blocks_seller_id |
outshifter_blocks_show_shop_icon |
outshifter_blocks_supplier_logo |
outshifter_blocks_mixpanel |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Reachu Embed Commerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲120 | 15.69 ▲1.28 | 66.03 ▲64.02 | 41.92 ▼3.10 |
Dashboard /wp-admin | 2,236 ▲59 | 5.91 ▲0.28 | 99.06 ▼5.00 | 74.62 ▲33.04 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.29 ▲0.32 | 35.15 ▼2.10 | 34.21 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,725 ▲197 | 24.91 ▲1.67 | 699.98 ▲11.12 | 35.97 ▼30.37 |
Media Library /wp-admin/upload.php | 1,447 ▲50 | 4.30 ▲0.06 | 105.18 ▼11.05 | 86.70 ▲34.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- outshifter_blocks_title_alignment
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/outshifter-embed-commerce/admin/partials/outsfhiter-wordpress-admin-display.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function post_class() in wp-content/plugins/outshifter-embed-commerce/includes/layout.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/outshifter-embed-commerce/includes/shortcodes/carousel.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outshifter-embed-commerce/includes/cart.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/outshifter-embed-commerce/includes/shortcodes/preview-shop.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/outshifter-embed-commerce/includes/shortcodes/two-products.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/outshifter-embed-commerce/includes/shortcodes/unique-product.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/outshifter-embed-commerce/includes/shortcodes/action-button.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outshifter-embed-commerce/admin/partials/custom-shortcodes.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/outshifter-embed-commerce/includes/shortcodes/shop.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outshifter-embed-commerce/admin/partials/custom-shortcodes.php:65
- > PHP Fatal error
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 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
outshifter-embed-commerce/outshifter-blocks.php 92% from 13 tests
The main PHP file in "Reachu Embed Commerce" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("outshifter-embed-commerce.php" instead of "outshifter-blocks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected6,397 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 353 | 285 | 4,135 |
CSS | 14 | 263 | 17 | 1,725 |
JavaScript | 4 | 49 | 5 | 418 |
SVG | 13 | 0 | 0 | 63 |
Markdown | 1 | 44 | 0 | 56 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 51.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 7.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 4 | 8.89% |
▷ Public methods | 42 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.67% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.19MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/modal-right.png | 3.06KB | 1.45KB | ▼ 52.49% |
admin/assets/left-column.png | 2.75KB | 1.20KB | ▼ 56.44% |
admin/assets/modal-center.png | 4.13KB | 1.44KB | ▼ 65.19% |
admin/assets/sale.png | 4.68KB | 4.13KB | ▼ 11.69% |
admin/assets/center.png | 2.78KB | 1.21KB | ▼ 56.54% |