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
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼7.71ms] Passed 4 tests
Analyzing server-side resources used by Better YOURLS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.47 ▼4.22 |
Dashboard /wp-admin | 3.45 ▲0.14 | 44.82 ▼4.56 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.27 ▲0.29 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 80.16 ▼19.72 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 34.34 ▼2.33 |
Better YOURLS /wp-admin/options-general.php?page=better_yourls | 3.34 | 33.33 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Better YOURLS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.16 ▼1.25 | 1.71 ▼0.12 | 42.89 ▲0.14 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▼0.05 | 97.19 ▼16.89 | 36.12 ▼7.13 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.01 | 38.45 ▲3.85 | 35.80 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.10 ▼0.08 | 653.62 ▼22.76 | 59.72 ▲10.52 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.33 ▲0.18 | 96.69 ▲0.67 | 42.98 ▲1.67 |
Better YOURLS /wp-admin/options-general.php?page=better_yourls | 1,331 | 2.84 | 54.83 | 70.29 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/better-yourls/uninstall.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/better-yourls/better-yourls.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: shortlink, yourls, custom shortlink
better-yourls/better-yourls.php Passed 13 tests
"Better YOURLS" version 2.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Replace WordPress shortlinks with custom YOURLS domain.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected722 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 286 | 456 | 647 |
Sass | 1 | 16 | 0 | 35 |
CSS | 2 | 3 | 2 | 24 |
JavaScript | 6 | 4 | 2 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 42.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 4 | 11.11% |
▷ Private methods | 1 | 2.78% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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