Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.22MB] [CPU: ▲13.78ms] Passed 4 tests
Server-side resources used by Affiliate Super Assistent
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.70 ▲2.24 | 61.64 ▲19.80 |
Dashboard /wp-admin | 5.52 ▲2.22 | 69.48 ▲15.65 |
Posts /wp-admin/edit.php | 5.64 ▲2.28 | 67.51 ▲16.42 |
Add New Post /wp-admin/post-new.php | 8.10 ▲2.22 | 112.94 ▲3.26 |
Media Library /wp-admin/upload.php | 5.44 ▲2.21 | 57.29 ▲22.36 |
Affiliate Simple Assistent (ASA1) /wp-admin/options-general.php?page=amazonsimpleadmin/amazonsimpleadmin.php | 5.42 | 71.22 |
Server storage [IO: ▲3.98MB] [DB: ▲0.11MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 568 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_amazonsimpleadmin |
can_compress_scripts |
_asa_cache_active |
_asa_cache_skip_on_admin |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
_asa_first_activation |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Affiliate Super Assistent
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.35 ▼0.02 | 1.95 ▲0.17 | 38.62 ▼7.90 |
Dashboard /wp-admin | 2,203 ▲23 | 5.57 ▼0.08 | 87.85 ▼7.10 | 38.80 ▼2.72 |
Posts /wp-admin/edit.php | 2,105 ▲8 | 1.97 ▲0.02 | 35.91 ▼1.17 | 30.61 ▼6.05 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 18.00 ▼5.63 | 635.63 ▼13.46 | 63.76 ▲7.26 |
Media Library /wp-admin/upload.php | 1,408 ▲14 | 4.34 ▲0.13 | 98.45 ▲1.47 | 44.94 ▲4.66 |
Affiliate Simple Assistent (ASA1) /wp-admin/options-general.php?page=amazonsimpleadmin/amazonsimpleadmin.php | 1,737 | 4.04 | 109.56 | 45.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_amazonsimpleadmin
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 851× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ASA_LIB_DIR - assumed 'ASA_LIB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Validate/File/NotExists.php on line 25
- > PHP Fatal error
require_once(): Failed opening required 'ASA_LIB_DIRAsaZend/Http/Client/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Http/Client/Adapter/Exception.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'ASA_LIB_DIRAsaZend/Controller/Router/Route/Interface.php' (include_path='.:/usr/share/php') in wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Rest/Route.php on line 25
- > PHP Warning
Use of undefined constant ASA_LIB_DIR - assumed 'ASA_LIB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/amazonsimpleadmin/lib/Asa/Service/Amazon/Request/Socket.php on line 11
- > PHP Warning
Use of undefined constant ASA_LIB_DIR - assumed 'ASA_LIB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/amazonsimpleadmin/vendor/composer/autoload_static.php on line 230
- > PHP Fatal error
require_once(): Failed opening required 'ASA_LIB_DIRAsaZend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Validate/Iban.php on line 25
- > PHP Warning
Use of undefined constant ASA_LIB_DIR - assumed 'ASA_LIB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/amazonsimpleadmin/lib/Asa/Service/Amazon/Debug.php on line 11
- > PHP Warning
require_once(ASA_LIB_DIRAsaZend/Service/Amazon/Authentication.php): failed to open stream: No such file or directory in wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Service/Amazon/Authentication/S3.php on line 26
- > PHP Fatal error
Uncaught Error: Interface 'AsaAmazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/amazonsimpleadmin/lib/AsaAmazon/com/amazon/paapi5/v1/ContentInfo.php:28
- > PHP Fatal error
require_once(): Failed opening required 'ASA_LIB_DIRAsaZend/Crypt/Math/BigInteger.php' (include_path='.:/usr/share/php') in wp-content/plugins/amazonsimpleadmin/lib/AsaZend/Crypt/Math.php on line 26
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: monetize, collections, marketing, affiliate, amazon...
amazonsimpleadmin/amazonsimpleadmin.php 92% from 13 tests
The primary PHP file in "Affiliate Super Assistent" version 1.5.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 277 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin57,741 lines of code in 478 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 428 | 10,302 | 38,729 | 50,112 |
Markdown | 10 | 1,006 | 0 | 3,211 |
PO File | 5 | 887 | 1,018 | 2,344 |
CSS | 8 | 119 | 13 | 1,175 |
JSON | 6 | 0 | 0 | 468 |
HTML | 18 | 12 | 0 | 315 |
JavaScript | 2 | 13 | 0 | 107 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 14.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 422.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 26 | |
Traits | 2 | |
Classes | 377 | |
▷ Abstract classes | 14 | 3.71% |
▷ Concrete classes | 363 | 96.29% |
▷ Final classes | 8 | 2.20% |
Methods | 3,955 | |
▷ Static methods | 590 | 14.92% |
▷ Public methods | 3,601 | 91.05% |
▷ Protected methods | 208 | 5.26% |
▷ Private methods | 146 | 3.69% |
Functions | 187 | |
▷ Named functions | 85 | 45.45% |
▷ Anonymous functions | 102 | 54.55% |
Constants | 599 | |
▷ Global constants | 4 | 0.67% |
▷ Class constants | 595 | 99.33% |
▷ Public constants | 595 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/asa2-banner-cache.png | 20.75KB | 19.72KB | ▼ 4.97% |
img/asa2-collections.png | 16.49KB | 15.68KB | ▼ 4.92% |
img/asa2-banner-default.png | 33.20KB | 32.67KB | ▼ 1.60% |
img/faq.png | 0.37KB | 0.26KB | ▼ 29.66% |
img/whatsnew/tpl_flat_box_horizontal.png | 30.89KB | 29.01KB | ▼ 6.11% |