Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/portgorod-ocstore-opencart-product-widget/portgorod_opencart.php+845
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.46ms] Passed 4 tests
A check of server-side resources used by Portgorod OcStore & Opencart product widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.89 ▲4.67 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.48 ▼2.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.67 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.94 ▼17.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.99 ▼3.63 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Portgorod OcStore & Opencart product widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.03 | 1.63 ▼0.48 | 40.23 ▼0.41 |
Dashboard /wp-admin | 2,209 ▲27 | 5.84 ▼0.02 | 107.55 ▼0.71 | 40.96 ▼1.20 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.04 ▼0.02 | 49.05 ▲7.47 | 47.42 ▲7.03 |
Add New Post /wp-admin/post-new.php | 1,547 ▲34 | 18.44 ▲0.63 | 623.53 ▲5.31 | 72.52 ▲24.78 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.23 ▲0.01 | 97.52 ▼7.00 | 43.68 ▲0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php
- 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: por_img_url in wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php on line 7
- > PHP Notice
Undefined variable: por_url in wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php on line 8
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/portgorod-ocstore-opencart-product-widget/portgorod_opencart.php on line 845
- > PHP Notice
Undefined variable: por_template_class in wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php on line 9
- > PHP Notice
Undefined variable: por_template_class in wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php on line 8
- > PHP Notice
Undefined variable: por_url in wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php on line 7
- > PHP Notice
Undefined variable: por_beforeprice in wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php on line 9
- > PHP Notice
Undefined variable: por_template_class in wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php on line 13
- > PHP Notice
Undefined variable: por_seo_main_dom in wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php on line 13
- > PHP Notice
Undefined variable: por_img_width in wp-content/plugins/portgorod-ocstore-opencart-product-widget/oc_product_tmp_1.php on line 7
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== portgorod-ocstore-opencart-product-widget ===
)
portgorod-ocstore-opencart-product-widget/portgorod_opencart.php 92% from 13 tests
The main PHP file in "Portgorod OcStore & Opencart product widget" ver. 1.2 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: It is recommended to name the main PHP file as the plugin slug ("portgorod-ocstore-opencart-product-widget.php" instead of "portgorod_opencart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin856 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 133 | 64 | 820 |
CSS | 1 | 1 | 0 | 36 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
close.png | 0.22KB | 0.11KB | ▼ 52.00% |
success.png | 0.76KB | 0.81KB | 0.00% |