Benchmarks
Plugin footprint 83% 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.17MB] [CPU: ▼7.81ms] Passed 4 tests
An overview of server-side resources used by Frequently Bought Together for LearnDash
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 43.31 ▲5.37 |
Dashboard /wp-admin | 3.49 ▲0.14 | 56.17 ▼7.63 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 51.31 ▲6.10 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 86.63 ▼26.73 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 36.78 ▼2.25 |
Server storage [IO: ▲0.24MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Frequently Bought Together for LearnDash
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲259 | 14.95 ▲0.67 | 11.36 ▲9.88 | 42.90 ▲4.92 |
Dashboard /wp-admin | 2,239 ▲59 | 5.16 ▼0.50 | 107.92 ▲9.74 | 41.18 ▼6.62 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.73 ▲0.72 | 47.41 ▲10.53 | 39.00 ▲3.46 |
Add New Post /wp-admin/post-new.php | 1,568 ▲34 | 23.64 ▲5.34 | 686.01 ▲26.42 | 36.17 ▼32.27 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.60 ▲0.42 | 94.28 ▼15.66 | 44.94 ▼3.03 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saffire-frequently-bought-together-learndash/include/ldfbt-frequently-bought-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saffire-frequently-bought-together-learndash/include/ldfbt-setting-functions.php:131
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saffire-frequently-bought-together-learndash/include/ldfbt-widget-metabox.php:88
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saffire-frequently-bought-together-learndash/include/ldfbt-process-add-cart.php:105
- > PHP Fatal error
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 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: sell, bundles, cross-sells, upsells, learndash...
saffire-frequently-bought-together-learndash/saffire-frequently-bought-together-learndash.php 77% from 13 tests
The entry point to "Frequently Bought Together for LearnDash" version 1.0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)
- Requires PHP: Required version must match the one declared in readme.txt ("7.2.0" instead of "7.2")
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
There were no executable files found in this plugin1,170 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 137 | 256 | 811 |
CSS | 3 | 30 | 4 | 241 |
JavaScript | 3 | 12 | 12 | 118 |
PHP code Passed 2 tests
A brief analysis 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.65 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 1 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 30 | 90.91% |
▷ Anonymous functions | 3 | 9.09% |
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
There were not PNG files found in your plugin