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.03MB] [CPU: ▼0.21ms] Passed 4 tests
Analyzing server-side resources used by Refer a Friend Program for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.90 ▲0.33 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.85 ▲0.65 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.18 ▼5.58 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.19 ▲3.75 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.72 ▲4.75 |
Refer a Friend /wp-admin/options-general.php?page=storeya-refer-a-friend | 3.20 | 31.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Refer a Friend Program for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.34 ▼0.81 | 4.73 ▲2.69 | 41.59 ▼9.77 |
Dashboard /wp-admin | 2,218 ▲27 | 5.80 ▲0.96 | 94.21 ▼23.58 | 41.50 ▼2.93 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.01 ▲0.01 | 36.39 ▼2.64 | 29.82 ▼5.85 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.27 ▲0.25 | 678.22 ▼4.98 | 55.47 ▲1.72 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.23 ▲0.05 | 97.60 ▲3.03 | 44.77 ▼1.45 |
Refer a Friend /wp-admin/options-general.php?page=storeya-refer-a-friend | 862 | 2.15 | 26.78 | 37.05 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=storeya-refer-a-friend
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=storeya-refer-a-friend
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/refer-a-friend-program-for-woocommerce/storeya-refer-a-friend.php:12
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
refer-a-friend-program-for-woocommerce/storeya-refer-a-friend.php 85% from 13 tests
This is the main PHP file of "Refer a Friend Program for WooCommerce" version 01..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("refer-a-friend-program-for-woocommerce.php" instead of "storeya-refer-a-friend.php")
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "01...")
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
No dangerous file extensions were detected143 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 10 | 143 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
storeya-refer-a-friend.png | 43.69KB | 24.39KB | ▼ 44.17% |
lock.png | 0.73KB | 0.91KB | 0.00% |