Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲2.86MB] [CPU: ▲23.18ms] Passed 4 tests
Analyzing server-side resources used by ASIN Smart Links
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.31 ▲2.85 | 68.54 ▲29.91 |
Dashboard /wp-admin | 6.18 ▲2.88 | 75.17 ▲26.97 |
Posts /wp-admin/edit.php | 6.23 ▲2.87 | 69.41 ▲18.60 |
Add New Post /wp-admin/post-new.php | 8.80 ▲2.91 | 113.29 ▲24.80 |
Media Library /wp-admin/upload.php | 6.08 ▲2.85 | 58.11 ▲22.36 |
Server storage [IO: ▲14.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2,171 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
plubo-routes-hash |
widget_recent-comments |
plubo-endpoints-hash |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for ASIN Smart Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲206 | 18.63 ▲4.28 | 1.79 ▼0.21 | 43.13 ▲0.20 |
Dashboard /wp-admin | 2,374 ▲194 | 8.93 ▲3.26 | 204.99 ▲109.61 | 42.45 ▲0.75 |
Posts /wp-admin/edit.php | 2,320 ▲214 | 6.14 ▲4.16 | 82.23 ▲40.45 | 34.36 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,602 ▲76 | 20.06 ▼3.64 | 721.72 ▲64.87 | 36.32 ▼9.03 |
Media Library /wp-admin/upload.php | 1,451 ▲54 | 6.68 ▲2.46 | 111.33 ▲12.31 | 41.57 ▼1.40 |
ASIN Smart Links /wp-admin/crb_carbon_fields_container_asin_smart_links.php | 26 | 0.42 | 0.08 | 14.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- plubo-endpoints-hash
- plubo-routes-hash
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/asin-smart-links/asin-smart-links.php
- > /wp-content/plugins/asin-smart-links/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 397× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PluboRoutes\\Endpoint\\Endpoint' not found in wp-content/plugins/asin-smart-links/vendor/joanrodas/plubo-routes/PluboRoutes/Endpoint/PutEndpoint.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/asin-smart-links/vendor/illuminate/contracts/Container/Container.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/asin-smart-links/vendor/htmlburger/carbon-fields/core/Datastore/Widget_Datastore.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/asin-smart-links/vendor/htmlburger/carbon-fields/core/Field/Html_Field.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/asin-smart-links/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodParameterException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\Htmlable' not found in wp-content/plugins/asin-smart-links/vendor/illuminate/view/ComponentSlot.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Extractor\\ExtractorInterface' not found in wp-content/plugins/asin-smart-links/vendor/symfony/translation/Extractor/ChainExtractor.php:21
- > PHP Fatal error
Uncaught ReflectionException: Class Symfony\\Component\\Translation\\Formatter\\MessageFormatterInterface does not exist in wp-content/plugins/asin-smart-links/vendor/nesbot/carbon/src/Carbon/MessageFormatter/MessageFormatterMapper.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/asin-smart-links/vendor/symfony/translation-contracts/Test/TranslatorTest.php:31
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/asin-smart-links/vendor/symfony/translation/Loader/CsvFileLoader.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/crb_carbon_fields_container_asin_smart_links.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_asin_smart_links.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 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: international link, asin, affiliate, isbn, amazon
asin-smart-links/asin-smart-links.php Passed 13 tests
The main PHP script in "ASIN Smart Links" version 1.0.1 is automatically included on every request by WordPress
86 characters long description:
Generate Amazon universal links to redirect users to the Amazon site of their country.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/asin-smart-links/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,574 | 15,270 | 52,045 | 69,121 |
JavaScript | 172 | 7,054 | 10,879 | 15,947 |
JSON | 29 | 0 | 0 | 2,977 |
XSD | 3 | 92 | 48 | 2,803 |
PO File | 28 | 898 | 1,111 | 2,411 |
CSS | 8 | 240 | 1,157 | 2,222 |
Sass | 50 | 366 | 3 | 1,872 |
Markdown | 29 | 526 | 1 | 1,307 |
reStructuredText | 1 | 74 | 78 | 74 |
Blade | 1 | 3 | 0 | 31 |
TypeScript | 1 | 2 | 1 | 22 |
YAML | 2 | 1 | 1 | 13 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 122 | |
Interfaces | 155 | |
Traits | 63 | |
Classes | 491 | |
▷ Abstract classes | 37 | 7.54% |
▷ Concrete classes | 454 | 92.46% |
▷ Final classes | 50 | 11.01% |
Methods | 5,222 | |
▷ Static methods | 789 | 15.11% |
▷ Public methods | 4,350 | 83.30% |
▷ Protected methods | 704 | 13.48% |
▷ Private methods | 168 | 3.22% |
Functions | 775 | |
▷ Named functions | 162 | 20.90% |
▷ Anonymous functions | 613 | 79.10% |
Constants | 251 | |
▷ Global constants | 17 | 6.77% |
▷ Class constants | 234 | 93.23% |
▷ Public constants | 229 | 97.86% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected