Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼293.94ms] Passed 4 tests
Server-side resources used by RMS Affiliate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 58.24 ▲5.54 |
Dashboard /wp-admin | 3.52 ▲0.11 | 35.22 ▲1.06 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 39.72 ▼0.66 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.02 | 102.92 ▼1,181.69 |
Media Library /wp-admin/upload.php | 3.40 ▲0.10 | 52.88 ▲22.78 |
Màu sắc /wp-admin/admin.php?page=color-setting-RM | 3.37 | 23.96 |
Kết nối /wp-admin/admin.php?page=rms-config | 3.37 | 24.88 |
Kết nối GetResponce /wp-admin/admin.php?page=rms-config-getresponce | 3.37 | 23.88 |
Thông báo CTV /wp-admin/admin.php?page=rms-notification-aff | 3.35 | 23.91 |
Cấu hình share link /wp-admin/admin.php?page=rms-config-sharelink | 3.37 | 34.78 |
Form mua hàng /wp-admin/admin.php?page=rms-manage-form-order | 3.43 | 34.04 |
Email thông báo /wp-admin/admin.php?page=rms-edit-email | 3.45 | 38.97 |
Mã nhúng /wp-admin/admin.php?page=rms-manage-link-shortcode | 3.35 | 25.87 |
Bitly Shortlink /wp-admin/admin.php?page=rms-bitly_shortlink | 3.37 | 23.31 |
Tùy chỉnh CSS /wp-admin/admin.php?page=rms-custom-css | 3.37 | 26.89 |
Server storage [IO: ▲1.53MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 91 new files
Database: 5 new tables, no new options
New tables |
---|
wp_rms_infusionsoft |
wp_rms_order_form_log |
wp_rms_notification_aff_setting |
wp_rms_email_setting |
wp_rms_order_form |
Browser metrics Passed 4 tests
An overview of browser requirements for RMS Affiliate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,001 ▲247 | 17.01 ▲1.38 | 12.25 ▲6.22 | 2.22 ▲0.02 |
Dashboard /wp-admin | 3,001 ▲150 | 6.78 ▲0.61 | 121.30 ▼20.32 | 166.05 ▲6.48 |
Posts /wp-admin/edit.php | 2,797 ▲106 | 3.32 ▲0.08 | 91.13 ▲25.58 | 148.53 ▼5.26 |
Add New Post /wp-admin/post-new.php | 1,702 ▲41 | 18.81 ▲1.78 | 397.71 ▼9.10 | 158.54 ▲1.03 |
Media Library /wp-admin/upload.php | 1,806 ▲108 | 6.19 ▲0.67 | 129.58 ▼17.18 | 197.51 ▲13.38 |
Màu sắc /wp-admin/admin.php?page=color-setting-RM | 1,141 | 3.16 | 56.95 | 165.13 |
Kết nối /wp-admin/admin.php?page=rms-config | 1,377 | 3.16 | 60.30 | 170.72 |
Kết nối GetResponce /wp-admin/admin.php?page=rms-config-getresponce | 1,165 | 3.15 | 55.24 | 151.56 |
Thông báo CTV /wp-admin/admin.php?page=rms-notification-aff | 2,097 | 9.08 | 158.25 | 181.06 |
Cấu hình share link /wp-admin/admin.php?page=rms-config-sharelink | 1,176 | 3.16 | 59.31 | 150.55 |
Form mua hàng /wp-admin/admin.php?page=rms-manage-form-order | 2,787 | 9.44 | 166.12 | 249.82 |
Email thông báo /wp-admin/admin.php?page=rms-edit-email | 2,272 | 10.48 | 164.44 | 226.76 |
Mã nhúng /wp-admin/admin.php?page=rms-manage-link-shortcode | 1,132 | 3.16 | 54.65 | 142.18 |
Bitly Shortlink /wp-admin/admin.php?page=rms-bitly_shortlink | 1,154 | 3.18 | 56.99 | 137.42 |
Tùy chỉnh CSS /wp-admin/admin.php?page=rms-custom-css | 1,109 | 3.18 | 58.83 | 174.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure failed, leaving 5 tables in the database
- wp_rms_notification_aff_setting
- wp_rms_infusionsoft
- wp_rms_email_setting
- wp_rms_order_form_log
- wp_rms_order_form
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=rms-notification-aff
- > Notice in wp-content/plugins/rms-interaction/app/views/NotificationAffSuccessView.php+22
Undefined property: stdClass::$id
- > GET request to /wp-admin/admin.php?page=rms-manage-link-shortcode
- > Notice in wp-content/plugins/rms-interaction/app/boot/BackEnd.php+100
Undefined index: shortcode_id
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rms-interaction/loader.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rms-interaction/loader.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Screenshot #1 (http://rms.com.vn/wp-content/uploads/2018/10/banner-772×250.jpg) image missing
rms-interaction/rms.php 85% from 13 tests
The main file in "RMS Affiliate" v. 4.1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rms-interaction.php" instead of "rms.php")
- Description: Please use more than 10 characters for the plugin description (currently 0 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin12,531 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 599 | 69 | 4,497 |
PHP | 45 | 678 | 861 | 4,157 |
JavaScript | 16 | 516 | 216 | 2,819 |
SVG | 2 | 0 | 0 | 818 |
HTML | 1 | 2 | 0 | 168 |
INI | 2 | 5 | 0 | 71 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 43 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 29 | 15.51% |
▷ Public methods | 184 | 98.40% |
▷ Protected methods | 2 | 1.07% |
▷ Private methods | 1 | 0.53% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tooltip.png | 0.60KB | 0.54KB | ▼ 9.15% |
assets/images/share.png | 7.28KB | 4.38KB | ▼ 39.93% |
assets/images/remove.png | 0.32KB | 0.41KB | 0.00% |
assets/css/chosen-sprite.png | 0.51KB | 0.88KB | 0.00% |