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.37MB] [CPU: ▲13.31ms] Passed 4 tests
A check of server-side resources used by Shopper - Affiliate Link Management, 25000+ Brand Partnerships & Creative Product Displays
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 52.39 ▲11.26 |
Dashboard /wp-admin | 3.67 ▲0.36 | 61.46 ▲12.60 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 64.33 ▲18.62 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 100.17 ▲10.76 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 52.55 ▲21.03 |
Server storage [IO: ▲1.73MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 54 new files
Database: 7 new tables, 7 new options
New tables |
---|
wp_shopper_dot_com_global_settings |
wp_shopper_dot_com_collection_products |
wp_shopper_dot_com_auth |
wp_shopper_dot_com_store |
wp_shopper_dot_com_themes |
wp_shopper_dot_com_aff_slugs |
wp_shopper_dot_com_all_collections |
New WordPress options |
---|
shopper_dotcom_db_version |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Shopper - Affiliate Link Management, 25000+ Brand Partnerships & Creative Product Displays: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲162 | 13.88 ▼0.83 | 7.07 ▲5.37 | 37.71 ▼7.54 |
Dashboard /wp-admin | 2,245 ▲68 | 5.81 ▲0.16 | 99.40 ▲1.24 | 42.38 ▼2.32 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.27 ▲0.24 | 43.98 ▲0.46 | 37.20 ▼7.61 |
Add New Post /wp-admin/post-new.php | 6,214 ▲4,688 | 19.19 ▼4.55 | 858.22 ▲255.58 | 56.56 ▼1.49 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 4.33 ▲0.13 | 103.96 ▲6.39 | 42.16 ▲1.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/shopper/templates/template-aff-rdrctn.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/shopper/templates/template-store.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/shopper/index.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: link tracking, wordpress affiliate plugin, affiliate plugin, affiliate marketing, affiliate link management...
shopper/index.php 77% from 13 tests
This is the main PHP file of "Shopper - Affiliate Link Management, 25000+ Brand Partnerships & Creative Product Displays" version 3.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 180 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("shopper.php" instead of "index.php")
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 91 characters long)
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
No dangerous file extensions were detected20,578 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 276 | 203 | 12,244 |
CSS | 9 | 1,117 | 163 | 5,764 |
PHP | 7 | 136 | 92 | 2,385 |
SVG | 11 | 1 | 0 | 168 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 43 | |
▷ Named functions | 33 | 76.74% |
▷ Anonymous functions | 10 | 23.26% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/help-round-button.png | 1.53KB | 0.83KB | ▼ 46.05% |
assets/home_page_iframe.png | 151.04KB | 49.42KB | ▼ 67.28% |
(invalid) assets/close_button.png | 66.28KB | 0.00KB | ▼ 100.00% |
assets/icon-256x256.png | 13.24KB | 4.37KB | ▼ 67.02% |
assets/sync-icon.png | 2.11KB | 1.76KB | ▼ 16.77% |