Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼9.66ms] Passed 4 tests
This is a short check of server-side resources used by AffiEasy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 39.59 ▼3.02 |
Dashboard /wp-admin | 3.60 ▲0.26 | 46.30 ▼17.75 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 46.52 ▼0.85 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 89.28 ▼17.03 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 35.05 ▲2.85 |
Affiliate links /wp-admin/admin.php?page=affieasy-link | 3.49 | 34.93 |
Webshops /wp-admin/admin.php?page=affieasy-webshop | 3.45 | 34.07 |
Tables /wp-admin/admin.php?page=affieasy-table | 3.45 | 32.17 |
Server storage [IO: ▲3.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 202 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_affieasy_webshop |
wp_affieasy_link |
wp_affieasy_table |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
affieasy_plugin_version |
Browser metrics Passed 4 tests
AffiEasy: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.25 ▼0.09 | 1.71 ▼0.03 | 44.01 ▲1.13 |
Dashboard /wp-admin | 2,225 ▲47 | 5.62 ▼0.01 | 91.96 ▼11.96 | 39.80 ▼4.34 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.98 ▲0.04 | 39.70 ▲3.29 | 37.07 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.40 ▲0.27 | 665.29 ▲43.94 | 53.83 ▲1.25 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.21 ▲0.04 | 96.85 ▼1.55 | 43.25 ▲1.70 |
Affiliate links /wp-admin/admin.php?page=affieasy-link | 1,225 | 2.10 | 27.73 | 28.98 |
Webshops /wp-admin/admin.php?page=affieasy-webshop | 999 | 2.13 | 28.58 | 26.91 |
Tables /wp-admin/admin.php?page=affieasy-table | 954 | 2.08 | 27.96 | 26.76 |
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
- Zombie tables were found after uninstall: 3 tables
- wp_affieasy_table
- wp_affieasy_webshop
- wp_affieasy_link
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- affieasy_plugin_version
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/affieasy/classes/class-afes-link-list.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'affieasy\\AFES_Utils' not found in wp-content/plugins/affieasy/views/admin/edit-webshop.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function aff_fs() in wp-content/plugins/affieasy/inc/free-version-message.php:1
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/affieasy/classes/class-afes-webshop-list.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'affieasy\\AFES_Utils' not found in wp-content/plugins/affieasy/views/admin/edit-links.php:9
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/affieasy/classes/class-afes-table-list.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/affieasy/classes/class-afes-link-list.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/affieasy/classes/class-afes-table-list.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'affieasy\\AFES_Utils' not found in wp-content/plugins/affieasy/views/admin/edit-table.php:9
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/affieasy/classes/class-afes-webshop-list.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 your attention:
- Donate link: Please fix this invalid url: ""
affieasy/affieasy.php Passed 13 tests
Analyzing the main PHP file in "AffiEasy" version 1.1.4
83 characters long description:
Plugin to easily and quickly generate responsive tables and manage affiliate links.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected40,054 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 7,685 | 16,118 | 33,204 |
JavaScript | 12 | 1,096 | 501 | 5,715 |
CSS | 18 | 145 | 20 | 836 |
PO File | 1 | 142 | 6 | 299 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 75.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 1,246 | |
▷ Static methods | 198 | 15.89% |
▷ Public methods | 892 | 71.59% |
▷ Protected methods | 15 | 1.20% |
▷ Private methods | 339 | 27.21% |
Functions | 101 | |
▷ Named functions | 94 | 93.07% |
▷ Anonymous functions | 7 | 6.93% |
Constants | 141 | |
▷ Global constants | 98 | 69.50% |
▷ Class constants | 43 | 30.50% |
▷ Public constants | 43 | 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
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/affieasy.png | 9.16KB | 5.26KB | ▼ 42.58% |
libs/color-picker/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |