Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.17ms] Passed 4 tests
Analyzing server-side resources used by SteeplyRef - Affiliate & Referral
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.99 ▼2.59 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.03 ▼4.49 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 54.22 ▲6.50 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 92.87 ▼8.02 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 35.32 ▲2.41 |
General Settings /wp-admin/admin.php?page=steeply-ref-general-settings | 3.31 | 35.49 |
Analytics /wp-admin/admin.php?page=steeply-ref-analytics | 3.30 | 39.30 |
FAQ /wp-admin/admin.php?page=steeply-ref-faq | 3.29 | 31.33 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_st_referrals |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
SteeplyRef - Affiliate & Referral: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲259 | 13.74 ▼0.56 | 5.04 ▲3.10 | 37.96 ▼8.71 |
Dashboard /wp-admin | 2,292 ▲104 | 4.89 ▼0.01 | 107.92 ▼9.41 | 45.08 ▲0.94 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▲0.00 | 40.43 ▲3.23 | 36.53 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 18.26 ▲0.83 | 593.84 ▼94.87 | 63.97 ▲11.67 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.23 ▲0.01 | 96.32 ▼3.81 | 41.77 ▼1.93 |
General Settings /wp-admin/admin.php?page=steeply-ref-general-settings | 942 | 2.03 | 24.50 | 29.66 |
Analytics /wp-admin/admin.php?page=steeply-ref-analytics | 909 | 2.02 | 35.48 | 42.95 |
FAQ /wp-admin/admin.php?page=steeply-ref-faq | 933 | 2.02 | 22.12 | 28.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_st_referrals
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/steeplyref-affiliate-referral/admin/partials/part-flex-sidebar.php
- > /wp-content/plugins/steeplyref-affiliate-referral/admin/partials/dashboard-widget.php
- > /wp-content/plugins/steeplyref-affiliate-referral/public/partials/steeply-ref-public-display.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/steeplyref-affiliate-referral/admin/partials/page-analytics.php:18
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/steeplyref-affiliate-referral/admin/partials/page-general-settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/steeplyref-affiliate-referral/admin/partials/page-faq.php:14
- > PHP Warning
Use of undefined constant ST_REFERRALS - assumed 'ST_REFERRALS' (this will throw an Error in a future version of PHP) in wp-content/plugins/steeplyref-affiliate-referral/admin/partials/page-analytics.php on line 16
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/steeplyref-affiliate-referral/admin/partials/page-analytics.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/steeplyref-affiliate-referral/public/partials/page-dashboard.php:3
- > PHP Warning
Use of undefined constant ST_REFERRALS - assumed 'ST_REFERRALS' (this will throw an Error in a future version of PHP) in wp-content/plugins/steeplyref-affiliate-referral/admin/partials/page-general-settings.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: steeplyref, referral, allsteeply, affiliate
steeplyref-affiliate-referral/steeply-ref.php 92% from 13 tests
"SteeplyRef - Affiliate & Referral" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("steeplyref-affiliate-referral.php" instead of "steeply-ref.php")
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
Good job! No executable or dangerous file extensions detected1,118 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 319 | 593 | 754 |
CSS | 3 | 69 | 11 | 334 |
PO File | 1 | 3 | 3 | 24 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 44 | |
▷ Static methods | 7 | 15.91% |
▷ Public methods | 38 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.64% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 42.67KB | 15.80KB | ▼ 62.96% |
assets/screenshot-3.png | 60.24KB | 24.15KB | ▼ 59.90% |
assets/icon-256x256.png | 30.28KB | 11.87KB | ▼ 60.81% |
assets/screenshot-4.png | 62.88KB | 22.96KB | ▼ 63.48% |
assets/screenshot-1.png | 59.95KB | 23.19KB | ▼ 61.32% |