Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.85ms] Passed 4 tests
Server-side resources used by Social Commerce for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.89 ▼5.32 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.25 ▼1.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.36 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.89 ▼19.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.12 ▼1.32 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_wctofb |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
wctofb_api |
can_compress_scripts |
widget_recent-posts |
wctofb_pg_version |
wctofb_apikey_success |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Social Commerce for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.26 ▼1.11 | 1.80 ▲0.02 | 40.77 ▼11.54 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▲0.96 | 105.88 ▲3.78 | 37.98 ▼6.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.00 | 39.40 ▲5.36 | 35.89 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.40 ▼0.12 | 653.58 ▲72.77 | 52.90 ▲1.36 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.23 ▲0.05 | 98.91 ▼2.84 | 42.20 ▼1.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/woo-to-facebook-shop/uninstall.php+21
Undefined variable: apisucces
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #10, #11, #12, #6, #7, #8, #9 in woo-to-facebook-shop/assets to your readme.txt
woo-to-facebook-shop/wctofb.php 77% from 13 tests
The main PHP script in "Social Commerce for WooCommerce" version 2.5.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-to-facebook-shop.php" instead of "wctofb.php")
- Requires at least: Required version does not match the one declared in readme.txt ("3.3.1" instead of "2.0.0")
- Description: Please keep the plugin description shorter than 140 characters (currently 258 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,364 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 16 | 51 | 1,362 |
CSS | 1 | 2 | 1 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 24 | 80.00% |
▷ Anonymous functions | 6 | 20.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
4 PNG files occupy 0.08MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sync-unsync.png | 21.05KB | 2.53KB | ▼ 87.98% |
images/deleted.png | 19.43KB | 1.08KB | ▼ 94.42% |
images/sync.png | 20.32KB | 1.68KB | ▼ 91.75% |
images/unsync.png | 20.73KB | 1.79KB | ▼ 91.35% |