Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.94MB] [CPU: ▼58.28ms] Passed 4 tests
A check of server-side resources used by OpenCart Product Display
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.76 ▼36.78 |
Dashboard /wp-admin | 2.08 ▼1.26 | 7.50 ▼58.44 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.63 ▼44.77 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.97 ▼93.11 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.50 ▼28.83 |
OpenCart Product Display /wp-admin/options-general.php?page=OpenCartProductDisplay | 2.08 | 5.79 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for OpenCart Product Display
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.38 | 1.63 ▼0.16 | 43.37 ▼0.73 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▼0.04 | 88.07 ▼12.51 | 41.18 ▼3.75 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.08 | 39.58 ▲4.02 | 36.93 ▲3.38 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.28 ▲0.30 | 665.69 ▼18.07 | 50.73 ▼3.21 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.22 ▼0.19 | 104.37 ▼1.48 | 45.71 ▼2.09 |
OpenCart Product Display /wp-admin/options-general.php?page=OpenCartProductDisplay | 748 | 1.63 | 6.66 | 18.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=OpenCartProductDisplay
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
- > GET request to /wp-admin/options-general.php?page=OpenCartProductDisplay
- > User deprecated in wp-includes/functions.php+5453
Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=OpenCartProductDisplay
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=OpenCartProductDisplay
- > Notice in wp-content/plugins/opencart-product-display/opencart_import_admin.php+8
Undefined index: opcimp_hidden
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: opcimp_hidden in wp-content/plugins/opencart-product-display/opencart_import_admin.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opencart-product-display/opencart_importer.php:150
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/opencart-product-display/opencart_import_admin.php:41
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The products being displayed on a WordPress site.), #2 (The widget in the WordPress admin window.)
opencart-product-display/opencart_importer.php 92% from 13 tests
This is the main PHP file of "OpenCart Product Display" version 1.0, 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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("opencart-product-display.php" instead of "opencart_importer.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
There were no executable files found in this plugin143 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 38 | 143 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin