Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/referral-system-for-users-oop/lib/class-safety.php+19
Function create_function() is deprecated
Server metrics [RAM: ▼1.87MB] [CPU: ▼50.07ms] Passed 4 tests
An overview of server-side resources used by Referral-system-IVD
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 8.28 ▼36.26 |
Dashboard /wp-admin | 2.14 ▼1.16 | 11.91 ▼45.10 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 12.64 ▼38.29 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 12.22 ▼80.63 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 13.98 ▼24.61 |
Referral-system-IVD /wp-admin/options-general.php?page=id_referral_sites | 2.14 | 13.30 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Referral-system-IVD
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,620 ▼115 | 13.27 ▼1.11 | 1.16 ▼0.73 | 36.58 ▼10.63 |
Dashboard /wp-admin | 2,196 ▲5 | 5.83 ▲0.96 | 115.80 ▲13.85 | 46.66 ▲2.03 |
Posts /wp-admin/edit.php | 2,088 ▼4 | 2.03 ▲0.03 | 39.95 ▼2.92 | 35.15 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 23.37 ▲4.90 | 666.27 ▲59.71 | 57.38 ▲3.88 |
Media Library /wp-admin/upload.php | 1,378 ▼10 | 4.21 ▼0.01 | 95.75 ▼4.83 | 41.87 ▼3.13 |
Referral-system-IVD /wp-admin/options-general.php?page=id_referral_sites | 986 | 2.02 | 28.41 | 27.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/referral-system-for-users-oop/lib/class-safety.php+19
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=id_referral_sites
- > Deprecated in wp-content/plugins/referral-system-for-users-oop/lib/class-safety.php+19
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/referral-system-for-users-oop/lib/class-sms-verif.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Admin panel), #2 (Settings page), #3 (Settings page)
referral-system-for-users-oop/index.php 77% from 13 tests
The principal PHP file in "Referral-system-IVD" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("referral-system-for-users-oop.php" instead of "index.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin741 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 497 | 138 | 592 |
JavaScript | 3 | 9 | 2 | 118 |
CSS | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.60 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 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 | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin