Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/wp-referral-light/wp-referral-lite.php+13
Undefined index: ref
Server metrics [RAM: ▼1.92MB] [CPU: ▼50.63ms] Passed 4 tests
Server-side resources used by WordPress Referral Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.11 ▼35.55 |
Dashboard /wp-admin | 2.08 ▼1.22 | 6.29 ▼40.38 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 5.77 ▼39.26 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.34 ▼87.31 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 5.81 ▼26.68 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Referral Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.55 ▼0.69 | 5.04 ▲3.30 | 40.44 ▼3.52 |
Dashboard /wp-admin | 2,209 ▲21 | 4.83 ▼1.05 | 98.24 ▼21.58 | 40.47 ▼8.26 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.96 ▼0.08 | 39.85 ▲3.93 | 35.94 ▼3.80 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.41 ▲5.90 | 607.92 ▼78.37 | 56.89 ▼6.05 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.27 ▲0.11 | 97.12 ▼2.97 | 42.13 ▼6.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wp-referral-light/wp-referral-lite.php+13
Undefined index: ref
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- 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
Everything seems fine, however 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
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: ref in wp-content/plugins/wp-referral-light/trunk/wp-referral-lite.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-referral-light/wp-referral-lite.php:21
- > PHP Notice
Undefined index: ref in wp-content/plugins/wp-referral-light/wp-referral-lite.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-referral-light/trunk/wp-referral-lite.php:21
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #2 (Users listing screenshot2.png.)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-referral-light ===
)
wp-referral-light/wp-referral-lite.php 85% from 13 tests
This is the main PHP file of "WordPress Referral Lite" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 189 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-referral-light.php" instead of "wp-referral-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin76 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 1 | 16 | 76 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 14 | |
▷ Named functions | 14 | 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
No PNG images were found in this plugin