Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼12.56ms] Passed 4 tests
Server-side resources used by Really Simple Affiliate Program
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 33.04 ▼12.67 |
Dashboard /wp-admin | 3.41 ▲0.10 | 80.00 ▲25.25 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 65.31 ▲13.28 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.62 | 40.59 ▼55.34 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 42.71 ▲4.48 |
Affiliate Program /wp-admin/options-general.php?page=really-simple-affiliate-program | 3.28 | 33.72 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: 2 new tables, 15 new options
New tables |
---|
wp_rsap_referral_log |
wp_rsap_affiliates |
New WordPress options |
---|
rsap_option_social_blurb_instagram |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
rsap_db_version |
widget_theysaidso_widget |
rsap_option_social_blurb_email |
can_compress_scripts |
widget_recent-posts |
rsap_option_social_image |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Really Simple Affiliate Program
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,027 ▲227 | 15.14 ▲0.70 | 7.69 ▲5.77 | 43.46 ▼2.11 |
Dashboard /wp-admin | 2,346 ▲140 | 6.43 ▲1.56 | 124.97 ▲11.41 | 46.04 ▲2.44 |
Posts /wp-admin/edit.php | 2,255 ▲163 | 3.40 ▲1.35 | 54.45 ▲16.99 | 35.40 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.23 ▲5.75 | 679.63 ▼11.70 | 39.25 ▼18.97 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.22 ▲0.01 | 96.15 ▼17.76 | 48.51 ▲1.99 |
Affiliate Program /wp-admin/options-general.php?page=really-simple-affiliate-program | 1,206 | 3.01 | 47.48 | 77.55 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_rsap_referral_log
- wp_rsap_affiliates
- The uninstall procedure has failed, leaving 15 options in the database
- rsap_option_social_blurb_email
- widget_theysaidso_widget
- rsap_option_enable_ip_restriction
- rsap_option_days_before_new_submission_allowed
- rsap_option_main_url
- rsap_option_social_blurb_facebook
- can_compress_scripts
- theysaidso_admin_options
- rsap_option_social_blurb_instagram
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=really-simple-affiliate-program
- > Warning in wp-content/plugins/really-simple-affiliate-program/really-simple-affiliate-program.php+622
Use of undefined constant RSSFI_TEXT - assumed 'RSSFI_TEXT' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: nextAffiliateCode in wp-content/plugins/really-simple-affiliate-program/affiliateCodeEmailTemplate.php on line 585
- > PHP Notice
Undefined variable: firstname in wp-content/plugins/really-simple-affiliate-program/affiliateCodeEmailTemplate.php on line 583
- > PHP Notice
Undefined variable: socialblurb_emailtext in wp-content/plugins/really-simple-affiliate-program/affiliateCodeEmailTemplate.php on line 591
- > PHP Notice
Undefined variable: referralUrl in wp-content/plugins/really-simple-affiliate-program/affiliateCodeEmailTemplate.php on line 589
- > PHP Notice
Undefined variable: websiteUrl in wp-content/plugins/really-simple-affiliate-program/affiliateCodeEmailTemplate.php on line 615
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/really-simple-affiliate-program/really-simple-affiliate-program.php:130
- > PHP Notice
Undefined variable: referralUrl in wp-content/plugins/really-simple-affiliate-program/affiliateCodeEmailTemplate.php on line 589
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=really-simple-affiliate-program
- > Network (severe)
wp-content/plugins/really-simple-affiliate-program/img/no-image.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #1 in really-simple-affiliate-program/assets to your readme.txt
really-simple-affiliate-program/really-simple-affiliate-program.php 92% from 13 tests
The main PHP script in "Really Simple Affiliate Program" version 2.1.1 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 294 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,032 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 207 | 181 | 942 |
JavaScript | 2 | 21 | 18 | 90 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin