Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.73ms] Passed 4 tests
A check of server-side resources used by Customer Referral Program For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.86 ▼6.25 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.38 ▼5.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.54 ▼4.22 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.48 ▼10.59 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.23 ▼4.75 |
Invitereferrals_wc /wp-admin/options-general.php?page=Invitereferrals_wc-options | 3.24 | 30.74 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Invitereferrals_wc |
Browser metrics Passed 4 tests
A check of browser resources used by Customer Referral Program For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.23 ▼1.14 | 1.51 ▼0.24 | 40.61 ▼1.92 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.01 | 104.19 ▼3.81 | 39.65 ▼5.66 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.02 | 39.45 ▲4.23 | 36.77 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,516 ▼151 | 23.68 ▲1.22 | 630.50 ▼42.17 | 45.87 ▼10.23 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.04 | 96.09 ▼12.78 | 43.56 ▼1.73 |
Invitereferrals_wc /wp-admin/options-general.php?page=Invitereferrals_wc-options | 794 | 2.17 | 24.48 | 25.01 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- Invitereferrals_wc
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/invitereferrals-referral-program-for-woocommerce/Invitereferrals_wc.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/invitereferrals-referral-program-for-woocommerce/Invitereferrals_options.php:45
- > 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
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 56 tag instead of maximum 10
invitereferrals-referral-program-for-woocommerce/Invitereferrals_wc.php 85% from 13 tests
The main PHP script in "Customer Referral Program For WooCommerce" version 2.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("invitereferrals-referral-program-for-woocommerce.php" instead of "Invitereferrals_wc.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 273 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected237 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 52 | 237 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
No PNG images were found in this plugin