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 gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.68ms] Passed 4 tests
Analyzing server-side resources used by Cool Integration for LearnPress & WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 33.91 ▼5.73 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.13 ▼3.92 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.34 ▲2.61 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.11 ▼19.66 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.55 ▲3.72 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Cool Integration for LearnPress & WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.23 | 1.78 ▼0.11 | 38.68 ▼9.18 |
Dashboard /wp-admin | 2,206 ▲20 | 4.83 ▼0.26 | 108.95 ▼15.40 | 41.97 ▼3.48 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.17 | 40.61 ▲2.54 | 34.95 ▲2.68 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 18.53 ▼4.70 | 595.43 ▼74.84 | 63.32 ▲7.28 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▲0.03 | 96.62 ▼6.68 | 42.64 ▼1.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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 take a closer look at the following
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/manca-lp-wc-integration/admin/course-product-sync.php
- > /wp-content/plugins/manca-lp-wc-integration/public/public.php
- > /wp-content/plugins/manca-lp-wc-integration/admin/includes/lp-admin-functions.php
- > /wp-content/plugins/manca-lp-wc-integration/admin/admin.php
- > /wp-content/plugins/manca-lp-wc-integration/admin/includes/wc-admin-functions.php
- > /wp-content/plugins/manca-lp-wc-integration/admin/enrollment-sync.php
- > /wp-content/plugins/manca-lp-wc-integration/settings.php
- > /wp-content/plugins/manca-lp-wc-integration/admin/includes/wp-admin-functions.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/manca-lp-wc-integration/lp-wc-integration.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: sync, integration, auto enrollment, course, learnpress...
manca-lp-wc-integration/lp-wc-integration.php 92% from 13 tests
The main PHP file in "Cool Integration for LearnPress & WooCommerce" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("manca-lp-wc-integration.php" instead of "lp-wc-integration.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
Success! There were no dangerous files found in this plugin257 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 79 | 185 | 257 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin