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.00MB] [CPU: ▼2.86ms] Passed 4 tests
A check of server-side resources used by Api2Cart Bridge Connector
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.55 ▲3.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.68 ▼1.63 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.24 ▼2.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.98 ▼7.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.17 ▲0.51 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Api2Cart Bridge Connector
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.14 | 1.64 ▲0.08 | 45.85 ▲1.61 |
Dashboard /wp-admin | 2,198 ▲30 | 5.63 ▲0.03 | 85.30 ▼0.30 | 38.77 ▼2.36 |
Posts /wp-admin/edit.php | 2,079 ▼21 | 1.99 ▼0.02 | 33.37 ▼0.54 | 33.81 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.94 ▼0.10 | 660.73 ▼16.21 | 56.55 ▼1.74 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.18 ▲0.02 | 93.03 ▼8.01 | 43.75 ▲0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/api2cart-bridge-connector/worker.php
- > /wp-content/plugins/api2cart-bridge-connector/connectorMain.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: api2cart bridge download, woocommerce b2b connector, bridge connector
api2cart-bridge-connector/connectorMain.php 92% from 13 tests
The principal PHP file in "Api2Cart Bridge Connector" v. 2.2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("api2cart-bridge-connector.php" instead of "connectorMain.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,781 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 624 | 955 | 2,433 |
CSS | 1 | 22 | 0 | 184 |
JavaScript | 1 | 30 | 0 | 164 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 18.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 7 | 5.38% |
▷ Public methods | 90 | 69.23% |
▷ Protected methods | 21 | 16.15% |
▷ Private methods | 19 | 14.62% |
Functions | 27 | |
▷ Named functions | 14 | 51.85% |
▷ Anonymous functions | 13 | 48.15% |
Constants | 18 | |
▷ Global constants | 10 | 55.56% |
▷ Class constants | 8 | 44.44% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 17.83KB | 6.02KB | ▼ 66.26% |