Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.63ms] Passed 4 tests
This is a short check of server-side resources used by Affiliates WP e-Commerce Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.60 ▲0.34 |
Dashboard /wp-admin | 3.31 ▼0.04 | 56.69 ▼11.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.92 ▼2.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.25 ▼12.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.00 ▲3.57 |
Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliates WP e-Commerce Integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 14.72 ▲0.56 | 2.10 ▲0.46 | 42.16 ▼0.88 |
Dashboard /wp-admin | 2,220 ▲43 | 5.56 ▲0.01 | 97.83 ▲5.78 | 44.33 ▲0.30 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 1.99 ▲0.04 | 36.46 ▼2.52 | 35.21 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 22.73 ▼0.21 | 643.73 ▼31.66 | 56.10 ▼4.98 |
Media Library /wp-admin/upload.php | 1,422 ▲28 | 4.21 ▼0.02 | 100.60 ▲4.72 | 45.55 ▼1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-wp-e-commerce/includes/class-affiliates-wpec-admin.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-wp-e-commerce/includes/class-affiliates-wpec-handler.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-wp-e-commerce/includes/class-affiliates-wpec.php:80
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-wp-e-commerce/includes/class-affiliates-wpec.php:80
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Referral rate setting - Here, a referral rate set at 0.2 credits affiliates with 20% commissions on sales.), #2 (Referrals created automatically for sales - Each referral is linked to its order.)
- Tags: Too many tags (36 tag instead of maximum 10); only the first 5 tags are used in your directory listing
affiliates-wp-e-commerce/affiliates-wp-e-commerce.php Passed 13 tests
The primary PHP file in "Affiliates WP e-Commerce Integration" version 2.1.2 is used by WordPress to initiate all plugin functionality
82 characters long description:
Integrates Affiliates, Affiliates Pro and Affiliates Enterprise with WP e-Commerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected557 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 86 | 228 | 557 |
PHP code Passed 2 tests
Analyzing 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.34 |
Average class complexity | 31.67 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 26 | 100.00% |
▷ Public methods | 25 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.85% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 2 | 8.70% |
▷ Class constants | 21 | 91.30% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 105.90KB | 34.24KB | ▼ 67.67% |
screenshot-1.png | 22.63KB | 6.89KB | ▼ 69.55% |