Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.62MB] [CPU: ▲10.52ms] Passed 4 tests
Server-side resources used by BetterLinks - Shorten, Track and Manage any URL
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.50 ▲1.03 | 42.47 ▲1.56 |
Dashboard /wp-admin | 5.15 ▲1.84 | 59.74 ▲10.76 |
Posts /wp-admin/edit.php | 5.20 ▲1.84 | 65.97 ▲18.77 |
Add New Post /wp-admin/post-new.php | 7.71 ▲1.81 | 103.13 ▲10.99 |
Media Library /wp-admin/upload.php | 5.01 ▲1.78 | 51.96 ▲18.89 |
Analytics /wp-admin/admin.php?page=betterlinks-analytics | 4.99 | 42.74 |
Manage Links /wp-admin/admin.php?page=betterlinks | 4.99 | 44.75 |
Settings /wp-admin/admin.php?page=betterlinks-settings | 4.99 | 44.32 |
Server storage [IO: ▲3.80MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 138 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_betterlinks_clicks |
wp_betterlinks_terms |
wp_betterlinks_terms_relationships |
wp_betterlinkmeta |
wp_betterlinks_password |
wp_betterlinks |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for BetterLinks - Shorten, Track and Manage any URL
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲65 | 14.13 ▼0.63 | 1.75 ▼0.19 | 37.32 ▼7.09 |
Dashboard /wp-admin | 2,306 ▲132 | 5.71 ▲0.07 | 92.31 ▼5.80 | 82.92 ▲40.27 |
Posts /wp-admin/edit.php | 2,211 ▲108 | 2.13 ▲0.12 | 41.28 ▲6.72 | 41.92 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,788 ▲262 | 25.09 ▲2.03 | 720.29 ▲85.70 | 190.98 ▲141.36 |
Media Library /wp-admin/upload.php | 1,505 ▲102 | 4.14 ▲0.00 | 98.92 ▼0.35 | 87.99 ▲44.64 |
Analytics /wp-admin/admin.php?page=betterlinks-analytics | 1,127 | 7.36 | 141.76 | 37.80 |
Manage Links /wp-admin/admin.php?page=betterlinks | 1,276 | 6.47 | 136.41 | 42.36 |
Settings /wp-admin/admin.php?page=betterlinks-settings | 1,385 | 6.12 | 99.29 | 48.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 6 tables
- wp_betterlinks_password
- wp_betterlinks_terms_relationships
- wp_betterlinks
- wp_betterlinkmeta
- wp_betterlinks_terms
- wp_betterlinks_clicks
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/betterlinks/vendor/a5hleyrich/wp-background-processing/tests/bootstrap.php
- 30× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BetterLinks\\API\\Controller' not found in wp-content/plugins/betterlinks/includes/API/Terms.php:7
- > PHP Fatal error
Uncaught Error: Class 'BetterLinks\\API\\Controller' not found in wp-content/plugins/betterlinks/includes/API/Settings.php:7
- > PHP Fatal error
Trait 'BetterLinks\\Traits\\Query' not found in wp-content/plugins/betterlinks/includes/Helper.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'PriyoMukul\\WPNotice\\Utils\\Base' not found in wp-content/plugins/betterlinks/vendor/priyomukul/wp-notice/src/Utils/Storage.php:8
- > PHP Fatal error
Uncaught Error: Class 'BetterLinks\\Tools\\Migration\\S30RBase' not found in wp-content/plugins/betterlinks/includes/Tools/Migration/S301ROneClick.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/betterlinks/vendor/a5hleyrich/wp-background-processing/tests/Test_Setup.php:11
- > PHP Fatal error
Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/betterlinks/vendor/jaybizzle/crawler-detect/src/Fixtures/Headers.php:14
- > PHP Fatal error
Uncaught Error: Class 'BetterLinks\\Tools\\Migration\\BaseCSV' not found in wp-content/plugins/betterlinks/includes/Tools/Migration/PTLOneClick.php:4
- > PHP Fatal error
Uncaught Error: Class 'PriyoMukul\\WPNotice\\Utils\\Base' not found in wp-content/plugins/betterlinks/vendor/priyomukul/wp-notice/src/Notice.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/betterlinks/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=betterlinks-analytics
- > Console-api (severe) in wp-content/plugins/betterlinks/assets/js/betterlinks.core.min.js?ver=9e93c62bac0e168d2aaf+0:1031804
Invalid scale configuration for scale: yAxes
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 33 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in betterlinks/assets to your readme.txt
betterlinks/betterlinks.php Passed 13 tests
The principal PHP file in "BetterLinks - Shorten, Track and Manage any URL" v. 1.6.3 is loaded by WordPress automatically on each request
135 characters long description:
Ultimate plugin to create, shorten, track and manage any URL. Gather analytics reports and run successfully marketing campaigns easily.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin12,219 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 1,136 | 2,437 | 10,976 |
SVG | 31 | 0 | 4 | 334 |
CSS | 6 | 57 | 18 | 312 |
Markdown | 1 | 124 | 0 | 252 |
JSON | 4 | 0 | 0 | 152 |
Bourne Shell | 1 | 23 | 11 | 147 |
JavaScript | 3 | 4 | 5 | 32 |
make | 1 | 4 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 2 | |
Traits | 8 | |
Classes | 58 | |
▷ Abstract classes | 6 | 10.34% |
▷ Concrete classes | 52 | 89.66% |
▷ Final classes | 2 | 3.85% |
Methods | 556 | |
▷ Static methods | 95 | 17.09% |
▷ Public methods | 488 | 87.77% |
▷ Protected methods | 44 | 7.91% |
▷ Private methods | 24 | 4.32% |
Functions | 29 | |
▷ Named functions | 4 | 13.79% |
▷ Anonymous functions | 25 | 86.21% |
Constants | 25 | |
▷ Global constants | 18 | 72.00% |
▷ Class constants | 7 | 28.00% |
▷ Public constants | 7 | 100.00% |
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