Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/invitereferrals-customer-referral-program/invitereferrals.php+40
Methods with the same name as their class will not be constructors in a future version of PHP; InviteReferralsWidget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼47.40ms] Passed 4 tests
An overview of server-side resources used by Customer Referral Program | Refer a Friend Software
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 11.11 ▼26.34 |
Dashboard /wp-admin | 2.30 ▼1.01 | 13.84 ▼37.70 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 10.74 ▼41.65 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 10.51 ▼83.89 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 9.64 ▼25.78 |
InviteReferrals /wp-admin/options-general.php?page=invitereferrals-plugin | 2.30 | 10.05 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_invitereferralswidget |
widget_theysaidso_widget |
invitereferrals |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Customer Referral Program | Refer a Friend Software: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.31 ▼0.44 | 6.98 ▲5.23 | 43.70 ▼1.96 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▼0.08 | 86.85 ▼2.24 | 39.90 ▼1.31 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.03 ▲0.09 | 36.15 ▼1.73 | 35.42 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.27 ▲0.22 | 657.67 ▼9.06 | 52.83 ▼5.37 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.07 | 104.57 ▼11.65 | 47.57 ▼2.12 |
InviteReferrals /wp-admin/options-general.php?page=invitereferrals-plugin | 929 | 2.03 | 27.86 | 33.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in InviteReferralsWidget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- db_upgraded
- widget_invitereferralswidget
- widget_theysaidso_widget
- invitereferrals
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=invitereferrals-plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in InviteReferralsWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=invitereferrals-plugin
- > 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=invitereferrals-plugin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/invitereferrals-customer-referral-program/invitereferrals.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/invitereferrals-customer-referral-program/invitereferrals_options_form.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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: There are too many tags (56 tag instead of maximum 10)
invitereferrals-customer-referral-program/invitereferrals.php 85% from 13 tests
The main PHP file in "Customer Referral Program | Refer a Friend Software" ver. 2.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: The principal plugin file should be the same as the plugin slug ("invitereferrals-customer-referral-program.php" instead of "invitereferrals.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 373 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin218 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 82 | 218 |
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.17 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected