Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.84ms] Passed 4 tests
Analyzing server-side resources used by IB Refer Me
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 36.05 ▼2.07 |
Dashboard /wp-admin | 3.38 ▲0.04 | 42.77 ▼23.50 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 43.22 ▼2.44 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 89.99 ▼2.97 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.33 ▼2.43 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_ib_referral |
wp_ib_contact_form |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IB Refer Me
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.55 ▼0.71 | 2.11 ▲0.23 | 40.62 ▼3.65 |
Dashboard /wp-admin | 2,234 ▲46 | 5.28 ▲0.38 | 107.10 ▼14.55 | 40.19 ▼3.47 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.33 ▲0.28 | 49.15 ▲12.24 | 35.67 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.28 ▲0.04 | 631.84 ▼70.50 | 69.96 ▼5.30 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.53 ▲0.35 | 105.51 ▼3.92 | 43.01 ▼3.55 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/ib-refer-me/admin/partials/ib-refer-me-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/ib-refer-me/public/partials/contact-form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ib-refer-me/public/partials/ib-refer-me-public-display.php:46
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/ib-refer-me/public/partials/contact-form.php on line 3
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Submitting Referral Form.), #2 (After Submitting Referral Form Popup screen.), #3 (Contact Form screen.), #4 (After the Submission success message screen.)
ib-refer-me/ib-refer-me.php Passed 13 tests
The entry point to "IB Refer Me" version 1.0.0 is a PHP file that has certain tags in its header comment area
73 characters long description:
This plugin is for a referral system which generate unique referral code.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin923 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 146 | 538 | 516 |
CSS | 3 | 4 | 10 | 267 |
JavaScript | 3 | 17 | 13 | 140 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin