Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼6.76ms] Passed 4 tests
Server-side resources used by AffiliateX - Best Amazon Affiliate WordPress Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 43.38 ▼1.58 |
Dashboard /wp-admin | 3.66 ▲0.31 | 48.15 ▼15.66 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 53.97 ▲1.95 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 86.89 ▼11.73 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 38.59 ▲5.02 |
Server storage [IO: ▲6.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 174 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AffiliateX - Best Amazon Affiliate WordPress Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲42 | 14.34 ▲0.19 | 1.79 ▼0.10 | 41.39 ▲2.12 |
Dashboard /wp-admin | 2,237 ▲60 | 5.63 ▼0.02 | 94.92 ▼0.76 | 36.71 ▼2.11 |
Posts /wp-admin/edit.php | 2,139 ▲36 | 2.14 ▲0.13 | 39.35 ▼1.59 | 34.64 ▼4.82 |
Add New Post /wp-admin/post-new.php | 6,394 ▲4,857 | 30.10 ▲11.88 | 965.09 ▲327.60 | 40.04 ▼26.88 |
Media Library /wp-admin/upload.php | 1,443 ▲49 | 4.18 ▲0.00 | 99.72 ▼3.21 | 43.92 ▲1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× 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/affiliatex/includes/classes/class-ab-fonts-manager.php:845
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: affiliates, affiliate marketing, amazon affiliate, gutenberg, affiliate plugin
affiliatex/affiliatex.php 92% from 13 tests
The main file in "AffiliateX - Best Amazon Affiliate WordPress Plugin" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin57,716 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 77 | 884 | 285 | 29,807 |
CSS | 20 | 2,849 | 61 | 10,043 |
Sass | 15 | 1,091 | 48 | 8,782 |
PHP | 36 | 749 | 854 | 5,142 |
SVG | 4 | 0 | 0 | 3,936 |
JSON | 2 | 0 | 0 | 6 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 380)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 2.90 |
Average class complexity | 129.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 834.00 |
Average method complexity | 19.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 380.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 1 | 4.76% |
Methods | 147 | |
▷ Static methods | 77 | 52.38% |
▷ Public methods | 137 | 93.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 6.80% |
Functions | 17 | |
▷ Named functions | 12 | 70.59% |
▷ Anonymous functions | 5 | 29.41% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin