Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.63MB] [CPU: ▼33.22ms] Passed 4 tests
A check of server-side resources used by Magforest Affiliate Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.77 ▼8.71 |
Dashboard /wp-admin | 3.32 ▲0.01 | 28.27 ▼23.95 |
Posts /wp-admin/edit.php | 3.32 ▼0.04 | 28.77 ▼21.62 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.57 | 25.91 ▼74.68 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 24.73 ▼12.63 |
Auto Sync /wp-admin/admin.php?page=magforest_schedule | 3.32 | 26.90 |
Bulk Import /wp-admin/admin.php?page=magforest_bulk | 3.32 | 24.34 |
Settings /wp-admin/admin.php?page=magforest_setup | 3.32 | 27.32 |
Search /wp-admin/admin.php?page=magforest | 3.32 | 25.15 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options |
---|
magforest_true_sync_interval |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
magforest_template |
Browser metrics Passed 4 tests
An overview of browser requirements for Magforest Affiliate Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲131 | 13.28 ▼1.49 | 5.18 ▲3.03 | 38.01 ▼6.63 |
Dashboard /wp-admin | 2,275 ▲87 | 4.89 ▲0.02 | 111.29 ▼3.95 | 42.86 ▼3.30 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 2.03 ▲0.02 | 40.39 ▲2.97 | 35.79 ▲3.16 |
Add New Post /wp-admin/post-new.php | 1,585 ▲71 | 18.34 ▲0.79 | 587.87 ▼71.59 | 48.72 ▼7.05 |
Media Library /wp-admin/upload.php | 1,454 ▲63 | 4.23 ▼0.01 | 98.05 ▲2.55 | 41.92 ▼1.96 |
Auto Sync /wp-admin/admin.php?page=magforest_schedule | 1,213 | 2.07 | 26.73 | 41.51 |
Bulk Import /wp-admin/admin.php?page=magforest_bulk | 1,040 | 2.04 | 23.60 | 33.06 |
Settings /wp-admin/admin.php?page=magforest_setup | 1,113 | 2.18 | 26.75 | 38.26 |
Search /wp-admin/admin.php?page=magforest | 1,084 | 2.18 | 25.97 | 25.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/panel.php+65
Undefined index: action
- Zombie WordPress options detected upon uninstall: 8 options
- magforest_template
- can_compress_scripts
- theysaidso_admin_options
- magforest_true_sync_interval
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 24 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=magforest
- > Notice in wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/panel.php+75
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=magforest_bulk
- > Notice in wp-content/plugins/magforest-affiliate-magazine-reseller-system/etc/magforest_api.php+137
Trying to get property 'categories' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=magforest_bulk
- > Notice in wp-content/plugins/magforest-affiliate-magazine-reseller-system/etc/magforest_api.php+119
Trying to get property 'publishers' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=magforest_bulk
- > Notice in wp-content/plugins/magforest-affiliate-magazine-reseller-system/etc/magforest_api.php+101
Trying to get property 'tags' of non-object
- > GET request to /wp-admin/admin.php?page=magforest
- > Notice in wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/pages/browse.php+59
Undefined index: mag_search
- > GET request to /wp-admin/admin.php?page=magforest
- > Notice in wp-content/plugins/magforest-affiliate-magazine-reseller-system/etc/magforest_api.php+71
Trying to get property 'count' of non-object
- > GET request to /wp-admin/admin.php?page=magforest
- > Notice in wp-content/plugins/magforest-affiliate-magazine-reseller-system/etc/magforest_api.php+67
Trying to get property 'products' of non-object
SRP 0% 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 fix the following
- 14× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/frontend/affiliate_post.php
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/pages/bulk.php
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/panel.php
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/pages/importer.php
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/install.php
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/warnings.php
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/etc/settings.php
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/pages/settings.php
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/etc/magforest_api.php
- > /wp-content/plugins/magforest-affiliate-magazine-reseller-system/frontend/shortcode.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/magazine.table.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/magforest-affiliate-magazine-reseller-system/admin/cron.table.php:2
- > 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 90% 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
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in magforest-affiliate-magazine-reseller-system/assets to your readme.txt
- Contributors: The plugin contributors field is not present
magforest-affiliate-magazine-reseller-system/magforest-affiliate.php 92% from 13 tests
The main PHP file in "Magforest Affiliate Plugin" ver. 2.2.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("magforest-affiliate-magazine-reseller-system.php" instead of "magforest-affiliate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,265 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 516 | 739 | 2,264 |
JavaScript | 1 | 1 | 4 | 1 |
PHP code Passed 2 tests
An short overview of 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.39 |
Average class complexity | 47.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 73 | |
▷ Static methods | 4 | 5.48% |
▷ Public methods | 50 | 68.49% |
▷ Protected methods | 21 | 28.77% |
▷ Private methods | 2 | 2.74% |
Functions | 70 | |
▷ Named functions | 70 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.04MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/orderprintedbutton.png | 10.79KB | 11.24KB | 0.00% |
assets/download-now-button.png | 11.70KB | 11.73KB | 0.00% |
assets/magforestlogo2016.png | 3.99KB | 4.24KB | 0.00% |
assets/orderprintedbuttonOLD.png | 14.85KB | 5.95KB | ▼ 59.91% |