Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.11MB] [CPU: ▼7.15ms] Passed 4 tests
A check of server-side resources used by Refer A Friend for WooCommerce by WPGens
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▼0.00 | 41.95 ▼14.75 |
Dashboard /wp-admin | 3.33 ▲0.03 | 55.28 ▲4.99 |
Posts /wp-admin/edit.php | 3.38 ▼0.46 | 53.57 ▼6.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 99.60 ▼9.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.56 ▲1.36 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Refer A Friend for WooCommerce by WPGens
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲139 | 13.42 ▼0.73 | 8.37 ▲6.62 | 41.19 ▼3.46 |
Dashboard /wp-admin | 2,217 ▲40 | 5.58 ▼0.08 | 89.43 ▼8.89 | 44.18 ▲1.18 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.15 ▲0.13 | 40.71 ▼7.44 | 36.25 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 22.95 ▼0.22 | 635.55 ▼1.73 | 45.85 ▼6.42 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.22 ▲0.08 | 101.55 ▼18.54 | 49.60 ▼0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 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 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/refer-a-friend-for-woocommerce-by-wpgens/admin/gens-notifications.php:139
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/refer-a-friend-for-woocommerce-by-wpgens/admin/class-gens-raf-woo-integration.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: referral, referral marketing, reward, sponsorship, refer...
refer-a-friend-for-woocommerce-by-wpgens/gens-raf.php 77% from 13 tests
The main PHP file in "Refer A Friend for WooCommerce by WPGens" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("refer-a-friend-for-woocommerce-by-wpgens.php" instead of "gens-raf.php")
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
There were no executable files found in this plugin1,274 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 169 | 582 | 686 |
PO File | 2 | 98 | 110 | 565 |
JavaScript | 1 | 4 | 3 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.50% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
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