Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼7.87ms] Passed 4 tests
A check of server-side resources used by Refersion for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.61 | 21.05 ▼21.41 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.07 ▼7.49 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.57 ▲3.44 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.88 ▼0.52 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.79 ▼2.05 |
Refersion /wp-admin/admin.php?page=refersion-setting-admin | 3.22 | 30.85 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_refersion_cart_tracking |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Refersion for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.35 ▲0.00 | 1.76 ▲0.01 | 43.49 ▲2.31 |
Dashboard /wp-admin | 2,200 ▲23 | 5.62 ▲0.09 | 90.14 ▼13.35 | 39.08 ▼6.28 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.03 ▲0.09 | 40.37 ▲4.79 | 36.47 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.28 ▼5.22 | 608.95 ▼96.29 | 66.39 ▲12.59 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.28 ▲0.05 | 95.43 ▼13.91 | 42.89 ▼1.90 |
Refersion /wp-admin/admin.php?page=refersion-setting-admin | 1,050 | 2.32 | 27.67 | 27.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_refersion_cart_tracking
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/refersion-for-woocommerce/refersion.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=refersion-setting-admin
- > Network (severe)
wp-content/plugins/refersion-for-woocommerce/refersion_by_pantastic_logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: influencer, refersion, marketing, affiliate, woocommerce...
refersion-for-woocommerce/refersion.php 85% from 13 tests
The primary PHP file in "Refersion for WooCommerce" version 4.10.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("refersion-for-woocommerce.php" instead of "refersion.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
Good job! No executable or dangerous file extensions detected888 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 395 | 315 | 840 |
JavaScript | 4 | 4 | 2 | 29 |
CSS | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 60.50 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 43 | |
▷ Static methods | 42 | 97.67% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
refersion_logo.png | 5.62KB | 3.54KB | ▼ 36.97% |