Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼290.22ms] Passed 4 tests
This is a short check of server-side resources used by Pretty Links - Link Management, Branding, Tracking & Sharing Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.21 | 56.39 ▲10.26 |
Dashboard /wp-admin | 3.59 ▲0.18 | 39.86 ▲6.75 |
Posts /wp-admin/edit.php | 3.87 ▲0.23 | 43.70 ▲8.34 |
Add New Post /wp-admin/post-new.php | 7.12 ▲0.15 | 100.54 ▼1,173.85 |
Media Library /wp-admin/upload.php | 3.53 ▲0.23 | 28.87 ▼2.13 |
Tags /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-upgrade-tags | 3.56 | 30.78 |
Options /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-options | 3.87 | 30.91 |
Add New /wp-admin/post-new.php?post_type=pretty-link | 3.81 | 45.53 |
/wp-admin/options.php?page=pretty-link-welcome | 3.58 | 27.92 |
Reports /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-upgrade-reports | 3.54 | 28.52 |
Import / Export /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-upgrade-import-export | 3.54 | 27.09 |
Clicks /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-clicks | 3.72 | 30.77 |
Pretty Links /wp-admin/edit.php?post_type=pretty-link | 3.60 | 32.74 |
Tools /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-tools | 3.58 | 26.97 |
Upgrade /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-updates | 3.58 | 35.02 |
Server storage [IO: ▲12.22MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 196 new files
Database: 3 new tables, 3 new options
New tables |
---|
wp_prli_clicks |
wp_prli_link_metas |
wp_prli_links |
New WordPress options |
---|
prli_options |
prli_db_version |
prli_version |
Browser metrics Passed 4 tests
Checking browser requirements for Pretty Links - Link Management, Branding, Tracking & Sharing Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,087 ▲333 | 15.90 ▼0.10 | 5.81 ▲0.13 | 2.62 ▼0.10 |
Dashboard /wp-admin | 3,182 ▲321 | 6.23 ▲0.04 | 113.85 ▼22.31 | 184.50 ▲18.18 |
Posts /wp-admin/edit.php | 2,778 ▲87 | 3.24 ▲0.01 | 68.49 ▲5.20 | 164.67 ▲17.10 |
Add New Post /wp-admin/post-new.php | 1,780 ▲28 | 21.82 ▲0.96 | 436.37 ▲4.21 | 158.58 ▼0.99 |
Media Library /wp-admin/upload.php | 1,782 ▲84 | 5.56 ▲0.06 | 132.86 ▼11.98 | 199.17 ▲11.46 |
Tags /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-upgrade-tags | 1,950 | 3.44 | 77.08 | 179.62 |
Options /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-options | 4,859 | 4.04 | 90.55 | 228.38 |
Add New /wp-admin/post-new.php?post_type=pretty-link | 3,198 | 4.87 | 85.40 | 228.52 |
/wp-admin/options.php?page=pretty-link-welcome | 1,687 | 3.19 | 58.21 | 240.33 |
Reports /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-upgrade-reports | 1,559 | 3.38 | 60.35 | 160.51 |
Import / Export /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-upgrade-import-export | 1,584 | 3.39 | 64.48 | 194.76 |
Clicks /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-clicks | 1,659 | 6.46 | 86.36 | 177.75 |
Pretty Links /wp-admin/edit.php?post_type=pretty-link | 1,823 | 3.63 | 70.64 | 150.59 |
Tools /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-tools | 1,575 | 3.41 | 61.37 | 175.91 |
Upgrade /wp-admin/edit.php?post_type=pretty-link&page=pretty-link-updates | 1,530 | 3.46 | 66.14 | 154.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_prli_clicks
- wp_prli_link_metas
- wp_prli_links
- This plugin did not uninstall successfully, leaving 3 options in the database
- prli_version
- prli_db_version
- prli_options
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 items
- 78× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/pretty-link/app/views/admin/upgrade/import-export.php
- > /wp-content/plugins/pretty-link/app/views/admin/upgrade/dialog.php
- > /wp-content/plugins/pretty-link/app/views/links/index.php
- > /wp-content/plugins/pretty-link/app/controllers/PrliAppController.php
- > /wp-content/plugins/pretty-link/app/views/options/index.php
- > /wp-content/plugins/pretty-link/app/views/admin/popups/rating.php
- > /wp-content/plugins/pretty-link/app/views/widgets/widget.php
- > /wp-content/plugins/pretty-link/app/views/shared/index.php
- > /wp-content/plugins/pretty-link/app/controllers/PrliPopupController.php
- > /wp-content/plugins/pretty-link/css/index.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 esc_html_e() in wp-content/plugins/pretty-link/app/views/shared/tinymce_form_popup.php:4
- > PHP Warning
Use of undefined constant PRLI_VIEWS_PATH - assumed 'PRLI_VIEWS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pretty-link/app/views/admin/upgrade/import-export.php on line 46
- > PHP Warning
include_once(PRLI_VIEWS_PATH/admin/upgrade/dialog.php): failed to open stream: No such file or directory in wp-content/plugins/pretty-link/app/views/admin/upgrade/tags.php on line 280
- > PHP Warning
include_once(): Failed opening 'PRLI_VIEWS_PATH/admin/upgrade/dialog.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pretty-link/app/views/admin/upgrade/tags.php on line 280
- > PHP Warning
Use of undefined constant PRLI_VIEWS_PATH - assumed 'PRLI_VIEWS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pretty-link/app/views/admin/upgrade/categories.php on line 280
- > PHP Notice
Undefined variable: upgrade_link in wp-content/plugins/pretty-link/app/views/admin/upgrade/dialog.php on line 24
- > PHP Warning
include_once(PRLI_VIEWS_PATH/admin/upgrade/dialog.php): failed to open stream: No such file or directory in wp-content/plugins/pretty-link/app/views/admin/upgrade/import-export.php on line 46
- > PHP Warning
include_once(): Failed opening 'PRLI_VIEWS_PATH/admin/upgrade/dialog.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pretty-link/app/views/admin/upgrade/categories.php on line 280
- > PHP Warning
Use of undefined constant PRLI_IMAGES_URL - assumed 'PRLI_IMAGES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pretty-link/app/views/admin/upgrade/dialog.php on line 5
- > PHP Warning
include_once(PRLI_VIEWS_PATH/admin/upgrade/dialog.php): failed to open stream: No such file or directory in wp-content/plugins/pretty-link/app/views/admin/upgrade/categories.php on line 280
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 58 tag instead of maximum 10
pretty-link/pretty-link.php Passed 13 tests
The principal PHP file in "Pretty Links - Link Management, Branding, Tracking & Sharing Plugin" v. 3.2.4 is loaded by WordPress automatically on each request
61 characters long description:
Shrink, track and share any URL using your website and brand!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin267,470 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
INI | 1 | 71,306 | 2,923 | 238,779 |
JSON | 2 | 0 | 0 | 12,768 |
PHP | 63 | 1,565 | 672 | 9,375 |
PO File | 1 | 920 | 1,079 | 2,452 |
CSS | 26 | 374 | 246 | 2,049 |
JavaScript | 24 | 295 | 183 | 1,703 |
SVG | 7 | 80 | 2 | 336 |
Sass | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 47.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 235.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 341 | |
▷ Static methods | 74 | 21.70% |
▷ Public methods | 317 | 92.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 7.04% |
Functions | 16 | |
▷ Named functions | 12 | 75.00% |
▷ Anonymous functions | 4 | 25.00% |
Constants | 32 | |
▷ Global constants | 32 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
37 PNG files occupy 1.36MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/welcome-click-update.png | 8.37KB | 3.91KB | ▼ 53.28% |
vendor/lib/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.31KB | 0.18KB | ▼ 42.95% |
images/bar_map.png | 13.07KB | 5.32KB | ▼ 59.27% |
vendor/lib/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.36KB | 0.15KB | ▼ 59.57% |
images/settings_table/arrow_sprite.png | 0.67KB | 0.52KB | ▼ 23.04% |