Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼11.97ms] Passed 4 tests
Analyzing server-side resources used by TMD AFF
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.94 ▲1.74 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.73 ▲2.45 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 55.89 ▲4.27 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.61 | 46.20 ▼56.32 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 41.71 ▲7.22 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/tmd-aff/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/tmd-aff/banner-772\303\227250.png"
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TMD AFF
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 14.80 ▲0.43 | 1.89 ▼0.07 | 42.34 ▼0.49 |
Dashboard /wp-admin | 2,249 ▲61 | 5.82 ▲0.84 | 100.01 ▼10.32 | 48.18 ▼7.95 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.02 ▲0.02 | 47.08 ▲6.34 | 39.24 ▲0.00 |
Add New Post /wp-admin/post-new.php | 6,333 ▲4,786 | 24.92 ▲6.56 | 1,037.24 ▲371.94 | 41.65 ▼13.29 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.17 ▼0.08 | 113.70 ▼5.40 | 46.04 ▼2.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tmd-aff/inc/ajax-call.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tmd-aff/inc/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tmd-aff/inc/notice.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tmd-aff/inc/products.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tmd-aff/tmd-aff.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tmd-aff/inc/meta-box.php:3
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The screenshot description corresponds to screenshot-1.png), #2 (The screenshot description corresponds to screenshot-2.png), #3 (The screenshot description corresponds to screenshot-3.png)
tmd-aff/tmd-aff.php Passed 13 tests
The main PHP script in "TMD AFF" version 1.2.0 is automatically included on every request by WordPress
33 characters long description:
This plugin for aff amazon niche.
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
Success! There were no dangerous files found in this plugin2,202 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 249 | 294 | 2,022 |
CSS | 1 | 1 | 0 | 142 |
JavaScript | 1 | 4 | 2 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 115.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 118 | |
▷ Static methods | 1 | 0.85% |
▷ Public methods | 102 | 86.44% |
▷ Protected methods | 16 | 13.56% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 99.23KB | 35.24KB | ▼ 64.48% |
banner-772×250.png | 13.42KB | 6.64KB | ▼ 50.53% |
screenshot-2.png | 25.72KB | 10.50KB | ▼ 59.18% |
screenshot-3.png | 20.95KB | 7.21KB | ▼ 65.55% |
screenshot.png | 13.42KB | 6.64KB | ▼ 50.53% |