Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.97ms] Passed 4 tests
An overview of server-side resources used by Facebook for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 32.03 ▼8.98 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.51 ▼7.16 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.07 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.74 ▼5.78 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.04 ▲6.44 |
Server storage [IO: ▲5.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 233 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Facebook for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲40 | 14.67 ▼0.04 | 1.60 ▼0.04 | 40.37 ▼3.42 |
Dashboard /wp-admin | 2,207 ▲27 | 5.61 ▼0.03 | 93.30 ▼5.22 | 43.33 ▲2.26 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 2.03 ▲0.06 | 39.47 ▼0.92 | 37.28 ▲2.91 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.35 ▼0.23 | 664.20 ▲32.38 | 47.88 ▼3.45 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.17 ▼0.03 | 102.42 ▲6.21 | 44.34 ▲1.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Trait 'Automattic\\WooCommerce\\ActionSchedulerJobFramework\\Utilities\\BatchSize' not found in wp-content/plugins/facebook-for-woocommerce/vendor/woocommerce/action-scheduler-job-framework/src/Utilities/BatchQueryOffset.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires php: Invalid version format
facebook-for-woocommerce/facebook-for-woocommerce.php 85% from 13 tests
The main PHP file in "Facebook for WooCommerce" ver. 3.1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "5.6")
- Description: Please don't use more than 140 characters for the plugin description (currently 298 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected17,402 lines of code in 218 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 184 | 5,069 | 12,769 | 15,802 |
JavaScript | 20 | 384 | 441 | 862 |
CSS | 7 | 60 | 32 | 501 |
Markdown | 2 | 35 | 0 | 121 |
JSON | 4 | 0 | 0 | 75 |
XML | 1 | 11 | 5 | 41 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 242.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 62 | |
Interfaces | 5 | |
Traits | 8 | |
Classes | 156 | |
▷ Abstract classes | 10 | 6.41% |
▷ Concrete classes | 146 | 93.59% |
▷ Final classes | 0 | 0.00% |
Methods | 1,270 | |
▷ Static methods | 174 | 13.70% |
▷ Public methods | 975 | 76.77% |
▷ Protected methods | 159 | 12.52% |
▷ Private methods | 136 | 10.71% |
Functions | 22 | |
▷ Named functions | 2 | 9.09% |
▷ Anonymous functions | 20 | 90.91% |
Constants | 202 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 202 | 100.00% |
▷ Public constants | 202 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-0.png | 1.71KB | 0.80KB | ▼ 53.03% |
assets/images/icon-1.png | 1.87KB | 0.93KB | ▼ 50.18% |
assets/images/background.png | 8.69KB | 3.84KB | ▼ 55.78% |
assets/images/woocommerce-placeholder.png | 57.34KB | 31.56KB | ▼ 44.97% |
assets/images/logo.png | 2.79KB | 1.45KB | ▼ 48.06% |