Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.87MB] [CPU: ▼170.86ms] Passed 4 tests
Analyzing server-side resources used by Opencart Product in WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 44.25 ▲20.51 |
Dashboard /wp-admin | 2.77 ▼0.28 | 28.33 ▼18.30 |
Posts /wp-admin/edit.php | 2.78 ▼0.33 | 25.04 ▼22.94 |
Add New Post /wp-admin/post-new.php | 2.77 ▼2.66 | 18.56 ▼636.07 |
Media Library /wp-admin/upload.php | 2.78 ▼0.23 | 28.80 ▼6.12 |
Opencart Product in WP /wp-admin/options-general.php?page=ocpwp_admin | 2.78 | 24.02 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Opencart Product in WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲128 | 15.91 ▲0.36 | 8.76 ▼0.15 | 49.04 ▲2.54 |
Dashboard /wp-admin | 2,978 ▲44 | 5.91 ▼0.10 | 144.51 ▼9.81 | 120.03 ▲2.86 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 69.37 ▲1.03 | 94.55 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,686 ▲188 | 18.38 ▼0.52 | 432.41 ▲40.29 | 135.96 ▲18.87 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.00 ▼0.02 | 172.05 ▲12.56 | 137.08 ▲8.48 |
Opencart Product in WP /wp-admin/options-general.php?page=ocpwp_admin | 1,200 | 2.22 | 56.66 | 83.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ocpwp_admin
- > User deprecated in wp-includes/functions.php+5495
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=ocpwp_admin
- > Notice in wp-content/plugins/opencart-product-in-wp/ocpwp_admin.php+2
Undefined index: ocpwp_hidden
SRP 50% 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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/opencart-product-in-wp/ocpwp_admin.php:29
- > PHP Notice
Undefined index: ocpwp_hidden in wp-content/plugins/opencart-product-in-wp/ocpwp_admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opencart-product-in-wp/ocpwp.php:23
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: display product from opencart, opencart link to wordpress, opencart product, opencart in wordpress, opencart...
opencart-product-in-wp/ocpwp.php 92% from 13 tests
The main PHP script in "Opencart Product in WP" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("opencart-product-in-wp.php" instead of "ocpwp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected297 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 42 | 12 | 293 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected