Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.12ms] Passed 4 tests
An overview of server-side resources used by Better Links
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.11 ▼4.43 |
Dashboard /wp-admin | 3.42 ▲0.11 | 47.05 ▼0.92 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.50 ▲3.85 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 93.63 ▲9.63 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.65 ▲1.04 |
Settings /wp-admin/edit.php?post_type=better-link&page=better-links-settings | 3.34 | 31.88 |
Add New /wp-admin/post-new.php?post_type=better-link | 3.44 | 49.80 |
Why Pro? /wp-admin/edit.php?post_type=better-link&page=better-links-pro | 3.15 | 21.17 |
Link Tools /wp-admin/edit.php?post_type=better-link&page=better-links-tools | 3.35 | 33.24 |
Link Categories /wp-admin/edit-tags.php?taxonomy=better-link-category&post_type=better-link | 3.33 | 33.44 |
Link Dashboard /wp-admin/edit.php?post_type=better-link | 3.39 | 38.98 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Better Links
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲165 | 13.67 ▼0.71 | 1.82 ▼0.17 | 43.50 ▼0.45 |
Dashboard /wp-admin | 2,278 ▲87 | 5.81 ▼0.09 | 96.47 ▼3.54 | 38.68 ▼3.98 |
Posts /wp-admin/edit.php | 2,167 ▲75 | 2.18 ▲0.17 | 42.13 ▲7.50 | 36.22 ▲3.75 |
Add New Post /wp-admin/post-new.php | 1,557 ▲43 | 23.33 ▲5.84 | 619.86 ▼65.08 | 54.78 ▼3.99 |
Media Library /wp-admin/upload.php | 1,466 ▲81 | 4.23 ▼0.06 | 97.82 ▼1.69 | 45.12 ▼0.03 |
Settings /wp-admin/edit.php?post_type=better-link&page=better-links-settings | 959 | 1.92 | 32.95 | 28.60 |
Add New /wp-admin/post-new.php?post_type=better-link | 1,605 | 2.76 | 52.99 | 34.91 |
Why Pro? /wp-admin/edit.php?post_type=better-link&page=better-links-pro | 34 | 0.44 | 0.07 | 6.25 |
Link Tools /wp-admin/edit.php?post_type=better-link&page=better-links-tools | 922 | 1.84 | 26.53 | 29.77 |
Link Categories /wp-admin/edit-tags.php?taxonomy=better-link-category&post_type=better-link | 1,333 | 2.15 | 26.52 | 27.55 |
Link Dashboard /wp-admin/edit.php?post_type=better-link | 1,161 | 2.36 | 33.40 | 27.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/better-links/modules/better-links-tracking/views/backend/meta-boxes/full-stats.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-links/modules/better-links/views/backend/sections/defaults.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-links/modules/better-links/views/backend/popup/process.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-links/modules/better-links-tracking/views/backend/pages/tools.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/better-links/modules/better-links/views/backend/meta-boxes/redirect-type.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-links/modules/better-links/views/backend/meta-boxes/urls.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-links/modules/better-links/views/backend/meta-boxes/actions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-links/modules/better-links/views/backend/meta-boxes/attributes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-links/modules/better-links/views/backend/nags/edit.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-links/modules/better-links/views/backend/meta-boxes/basics.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/better-links/modules/better-links/views/backend/fields/redirect-type.php:4
- > 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/edit.php?post_type=better-link&page=better-links-pro
- > Network (severe)
https://betterlinkspro.com/why-pro/?utm_source=betterlinksplugin&utm_medium=link&utm_campaign=betterlinkspluginsidebar - Failed to load resource: the server responded with a status of 404 ()
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
3 plugin tags: admin, links, editor
better-links/better-links.php Passed 13 tests
"Better Links" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Quickly and easily create a variety of links for your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,067 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 487 | 52 | 1,626 |
JavaScript | 3 | 77 | 22 | 374 |
CSS | 1 | 18 | 1 | 67 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 86.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 114 | 100.00% |
▷ Public methods | 79 | 69.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 35 | 30.70% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 2 | 11.76% |
▷ Class constants | 15 | 88.24% |
▷ Public constants | 15 | 100.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
PNG images were not found in this plugin