Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.75MB] [CPU: ▼295.03ms] Passed 4 tests
This is a short check of server-side resources used by Eant Affiliate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.68 ▲1.16 | 60.42 ▲12.90 |
Dashboard /wp-admin | 4.35 ▲0.94 | 24.46 ▼8.25 |
Posts /wp-admin/edit.php | 4.41 ▲0.77 | 29.78 ▼11.43 |
Add New Post /wp-admin/post-new.php | 7.20 ▲0.22 | 81.05 ▼1,173.32 |
Media Library /wp-admin/upload.php | 4.38 ▲1.07 | 63.88 ▲33.27 |
Manage Order /wp-admin/admin.php?page=eant-manage-form-order | 4.40 | 27.10 |
Bitly Shortlink /wp-admin/admin.php?page=eant-bitly_shortlink | 4.42 | 33.61 |
Google Shortlink /wp-admin/admin.php?page=eant-google_shortlink | 4.42 | 27.76 |
Custom CSS /wp-admin/admin.php?page=eant-custom-css | 4.42 | 25.79 |
Manage Link Shortcode /wp-admin/admin.php?page=eant-manage-link-shortcode | 4.40 | 27.48 |
Notification-Info /wp-admin/admin.php?page=eant-info | 4.42 | 26.54 |
Setting /wp-admin/admin.php?page=eant-config | 4.42 | 28.37 |
Manage Lead /wp-admin/admin.php?page=eant-manage-lead | 4.40 | 25.96 |
Manage Color /wp-admin/admin.php?page=color-setting-RM | 4.42 | 27.46 |
Server storage [IO: ▲1.61MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 73 new files
Database: 5 new tables, no new options
New tables |
---|
wp_form_manage_order |
wp_district |
wp_manage_link_shortcode |
wp_province |
wp_form_manage_lead |
Browser metrics Passed 4 tests
An overview of browser requirements for Eant Affiliate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,975 ▲231 | 17.11 ▲1.15 | 14.13 ▲7.71 | 2.52 ▲0.33 |
Dashboard /wp-admin | 2,976 ▲118 | 6.48 ▲0.28 | 122.74 ▼14.60 | 157.49 ▼4.61 |
Posts /wp-admin/edit.php | 2,771 ▲77 | 3.29 ▲0.05 | 66.21 ▲2.51 | 138.66 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,720 ▼32 | 17.08 ▼3.80 | 389.72 ▼76.68 | 174.22 ▲14.79 |
Media Library /wp-admin/upload.php | 1,783 ▲85 | 5.84 ▲0.41 | 128.25 ▼18.37 | 189.28 ▼1.54 |
Manage Order /wp-admin/admin.php?page=eant-manage-form-order | 2,421 | 9.04 | 166.81 | 232.84 |
Bitly Shortlink /wp-admin/admin.php?page=eant-bitly_shortlink | 1,134 | 2.77 | 58.75 | 126.41 |
Google Shortlink /wp-admin/admin.php?page=eant-google_shortlink | 1,124 | 2.77 | 55.49 | 129.99 |
Custom CSS /wp-admin/admin.php?page=eant-custom-css | 1,118 | 2.78 | 64.32 | 154.04 |
Manage Link Shortcode /wp-admin/admin.php?page=eant-manage-link-shortcode | 1,110 | 2.90 | 54.87 | 130.05 |
Notification-Info /wp-admin/admin.php?page=eant-info | 1,093 | 2.77 | 54.70 | 112.49 |
Setting /wp-admin/admin.php?page=eant-config | 1,319 | 2.88 | 53.83 | 126.87 |
Manage Lead /wp-admin/admin.php?page=eant-manage-lead | 1,470 | 3.05 | 60.49 | 184.03 |
Manage Color /wp-admin/admin.php?page=color-setting-RM | 1,161 | 2.77 | 56.16 | 138.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 5 tables
- wp_province
- wp_form_manage_lead
- wp_form_manage_order
- wp_district
- wp_manage_link_shortcode
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eant-manage-lead
- > Notice in wp-content/plugins/devnet-eantrm/app/views/ViewManageFormLead.php+18
Undefined index: shortcode_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eant-manage-lead
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/devnet-eantrm/app/ctrs/DynamicField.php+23
Undefined index: devnet_referral
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eant-manage-lead
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/devnet-eantrm/app/ctrs/DynamicField.php+26
Trying to get property 'referral_tracking' of non-object
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/devnet-eantrm/loader.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/devnet-eantrm/loader.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (http://www.eantrm.com/wp-content/uploads/2016/12/eantrm-1.png) image required
devnet-eantrm/enatrm.php 85% from 13 tests
"Eant Affiliate" version 6.6.0'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: Please rename the main PHP file in this plugin to the plugin slug ("devnet-eantrm.php" instead of "enatrm.php")
- Description: A good plugin description is longer than 10 characters (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
Everything looks great! No dangerous files found in this plugin12,670 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 760 | 958 | 5,356 |
CSS | 8 | 592 | 67 | 4,417 |
JavaScript | 12 | 412 | 223 | 2,079 |
SVG | 2 | 0 | 0 | 818 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 195 | |
▷ Static methods | 24 | 12.31% |
▷ Public methods | 193 | 98.97% |
▷ Protected methods | 2 | 1.03% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/share.png | 7.28KB | 4.38KB | ▼ 39.93% |