Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▼1.94ms] Passed 4 tests
This is a short check of server-side resources used by RefPress - Affiliates Manager Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 46.21 ▲4.59 |
Dashboard /wp-admin | 3.93 ▲0.58 | 55.80 ▼11.50 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 52.69 ▲4.20 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 102.07 ▼5.05 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 47.72 ▲10.32 |
RefPress 0 /wp-admin/admin.php?page=refpress | 3.81 | 44.72 |
Payout History /wp-admin/admin.php?page=refpress-payout-history | 3.80 | 48.53 |
Accounts /wp-admin/admin.php?page=refpress-accounts | 3.82 | 40.84 |
All Traffic /wp-admin/admin.php?page=refpress-traffic | 3.78 | 37.49 |
Settings /wp-admin/admin.php?page=refpress-settings | 3.90 | 39.58 |
Referral Earnings /wp-admin/admin.php?page=refpress-referrals | 3.80 | 37.25 |
Server storage [IO: ▲0.66MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 56 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_refpress_earnings |
wp_refpress_payouts |
wp_refpress_traffics |
wp_refpress_logs |
wp_refpress_accounts |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
refpress_version |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
refpress_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for RefPress - Affiliates Manager Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲185 | 13.93 ▼0.56 | 9.57 ▲8.02 | 42.17 ▼1.95 |
Dashboard /wp-admin | 2,254 ▲77 | 4.93 ▼0.68 | 98.09 ▲2.43 | 41.32 ▼0.06 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.45 ▲0.47 | 33.67 ▼3.43 | 31.17 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 23.28 ▲0.00 | 652.25 ▼35.90 | 60.28 ▲1.34 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.45 ▲0.25 | 111.84 ▲10.54 | 46.47 ▲4.73 |
RefPress 0 /wp-admin/admin.php?page=refpress | 943 | 3.42 | 73.03 | 45.38 |
Payout History /wp-admin/admin.php?page=refpress-payout-history | 949 | 1.88 | 27.91 | 28.40 |
Accounts /wp-admin/admin.php?page=refpress-accounts | 1,026 | 1.92 | 24.39 | 36.51 |
All Traffic /wp-admin/admin.php?page=refpress-traffic | 1,000 | 1.92 | 26.66 | 29.00 |
Settings /wp-admin/admin.php?page=refpress-settings | 2,560 | 2.37 | 45.29 | 59.23 |
Referral Earnings /wp-admin/admin.php?page=refpress-referrals | 1,002 | 1.88 | 25.99 | 30.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 5 tables
- wp_refpress_payouts
- wp_refpress_accounts
- wp_refpress_traffics
- wp_refpress_earnings
- wp_refpress_logs
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- refpress_settings
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- refpress_version
- theysaidso_admin_options
Smoke tests 75% 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 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
Please fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/refpress/includes/functions-hooks.php:3
- > PHP Fatal error
Uncaught Error: Class 'RefPress\\Includes\\Admin\\TrafficList' not found in wp-content/plugins/refpress/includes/admin/traffic/traffic.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/refpress/includes/admin/settings/panel.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function refpress_get_payout_methods() in wp-content/plugins/refpress/includes/admin/payout/configure.php:5
- > PHP Fatal error
Uncaught Error: Class 'RefPress\\Includes\\Admin\\PayoutList' not found in wp-content/plugins/refpress/includes/admin/payout/payouts.php:2
- > PHP Fatal error
Uncaught Error: Class 'RefPress\\Includes\\Admin\\CommissionsList' not found in wp-content/plugins/refpress/includes/admin/accounts/referrals.php:2
- > PHP Fatal error
Uncaught Error: Class 'RefPress\\Includes\\Admin\\AccountsList' not found in wp-content/plugins/refpress/includes/admin/accounts/list.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Overview of affiliates) image missing
- Tags: There are too many tags (11 tag instead of maximum 10)
refpress/refpress.php 92% from 13 tests
The primary PHP file in "RefPress - Affiliates Manager Plugin" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.5" instead of "4.7")
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
There were no executable files found in this plugin7,041 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 1,714 | 1,502 | 5,464 |
CSS | 5 | 78 | 52 | 1,175 |
JavaScript | 4 | 85 | 63 | 387 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 2 | 1.71% |
▷ Public methods | 117 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 84 | |
▷ Named functions | 81 | 96.43% |
▷ Anonymous functions | 3 | 3.57% |
Constants | 6 | |
▷ Global constants | 6 | 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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/join-promote-earn.png | 55.60KB | 25.88KB | ▼ 53.46% |