Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.53MB] [CPU: ▼15.07ms] Passed 4 tests
A check of server-side resources used by Yame | Link In Bio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 43.30 ▲4.18 |
Dashboard /wp-admin | 3.50 ▲0.20 | 48.92 ▼0.04 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 50.69 ▼4.13 |
Add New Post /wp-admin/post-new.php | 3.31 ▼2.57 | 39.42 ▼60.27 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 41.27 ▲7.04 |
LinkInBio /wp-admin/options-general.php?page=linkinbio | 3.35 | 31.44 |
Server storage [IO: ▲7.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 954 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Yame | Link In Bio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲201 | 14.36 ▼0.32 | 5.92 ▲3.94 | 42.25 ▼6.59 |
Dashboard /wp-admin | 2,234 ▲46 | 5.70 ▲0.84 | 117.67 ▲11.26 | 38.07 ▼5.82 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.60 ▲0.54 | 45.18 ▲9.56 | 30.77 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,694 ▲151 | 20.17 ▲2.09 | 675.10 ▲45.00 | 43.35 ▼8.74 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.98 ▲0.73 | 107.04 ▲8.67 | 40.97 ▼3.98 |
LinkInBio /wp-admin/options-general.php?page=linkinbio | 1,087 | 2.62 | 49.59 | 40.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% 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 0% 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
Almost there! Just fix the following items
- 10× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/SyntaxChecker.test.php
- > /wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/issues/Github-560.test.php
- > /wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/Autoload.test.php
- > /wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/examples/phpinfo.php
- > /wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/issues/Github-392.test.php
- > /wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/bin/ci/run_tests.php
- > /wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/ReadWriteOperations.test.php
- > /wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/issues/Github-373.test.php
- > /wp-content/plugins/yame-linkinbio/public/partials/linkinbio-public-display.php
- > /wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/examples/index.php
- 414× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/yame-linkinbio/vendor/predis/predis/src/Command/ConnectionSelect.php:19
- > PHP Fatal error
Uncaught Error: Interface 'phpFastCache\\Cache\\ExtendedCacheItemInterface' not found in wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/src/phpFastCache/Drivers/Mongodb/Item.php:26
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/AttachingDetachingMethods.test.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\SetIntersection' not found in wp-content/plugins/yame-linkinbio/vendor/predis/predis/src/Command/SetDifference.php:19
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/yame-linkinbio/vendor/predis/predis/src/Command/KeyMove.php:19
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/yame-linkinbio/vendor/predis/predis/src/Command/ConnectionQuit.php:19
- > PHP Warning
require(wp-content/plugins/yame-linkinbio/vendor/raiym/instagram-php-scraper/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/yame-linkinbio/vendor/raiym/instagram-php-scraper/examples/likeAndUnlikeMedia.php on line 5
- > PHP Warning
require_once(wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/issues/../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/yame-linkinbio/vendor/phpfastcache/phpfastcache/tests/issues/Github-529.test.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\GeospatialGeoRadius' not found in wp-content/plugins/yame-linkinbio/vendor/predis/predis/src/Command/GeospatialGeoRadiusByMember.php:19
- > PHP Fatal error
Uncaught Error: Class 'InstagramScraper\\Model\\AbstractModel' not found in wp-content/plugins/yame-linkinbio/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Model/Account.php:9
- > 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 fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=linkinbio
- > Network (severe)
wp-json/linkinbio/v1/insta/ - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=linkinbio
- > Network (severe)
wp-json/linkinbio/v1/links - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Settings dashboard with Vuejs), #2 (Front-end view)
yame-linkinbio/linkinbio.php 92% from 13 tests
"Yame | Link In Bio" version 0.9.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yame-linkinbio.php" instead of "linkinbio.php")
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 plugin171,909 lines of code in 897 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 314 | 18,715 | 18,176 | 112,913 |
CSS | 3 | 8,563 | 220 | 26,586 |
PHP | 474 | 5,717 | 16,099 | 21,452 |
Markdown | 43 | 1,891 | 0 | 5,415 |
HTML | 10 | 462 | 5 | 2,697 |
JSON | 27 | 0 | 0 | 2,045 |
TypeScript | 8 | 85 | 19 | 534 |
YAML | 7 | 20 | 23 | 148 |
make | 4 | 18 | 4 | 51 |
INI | 2 | 6 | 7 | 25 |
XML | 2 | 2 | 0 | 25 |
Bourne Shell | 3 | 3 | 0 | 18 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 62 | |
Interfaces | 36 | |
Traits | 9 | |
Classes | 354 | |
▷ Abstract classes | 13 | 3.67% |
▷ Concrete classes | 341 | 96.33% |
▷ Final classes | 1 | 0.29% |
Methods | 1,835 | |
▷ Static methods | 141 | 7.68% |
▷ Public methods | 1,427 | 77.77% |
▷ Protected methods | 337 | 18.37% |
▷ Private methods | 71 | 3.87% |
Functions | 36 | |
▷ Named functions | 12 | 33.33% |
▷ Anonymous functions | 24 | 66.67% |
Constants | 135 | |
▷ Global constants | 15 | 11.11% |
▷ Class constants | 120 | 88.89% |
▷ Public constants | 120 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected