Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.24MB] [CPU: ▼36.17ms] Passed 4 tests
This is a short check of server-side resources used by Short Links and Traffic
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.12 ▼32.77 |
Dashboard /wp-admin | 3.01 ▼0.30 | 24.99 ▼24.46 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 23.57 ▼21.91 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 24.77 ▼65.54 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 21.82 ▼11.18 |
Short Links and Traffic /wp-admin/options-general.php?page=klick_slt | 3.01 | 26.65 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_slt_details |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
klick-slt-logging |
widget_theysaidso_widget |
theysaidso_admin_options |
slt_details_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Short Links and Traffic
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲164 | 13.53 ▼0.91 | 5.80 ▲3.98 | 42.43 ▲3.59 |
Dashboard /wp-admin | 2,213 ▲25 | 5.82 ▲0.92 | 97.93 ▼4.70 | 36.74 ▼4.26 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▲0.03 | 36.95 ▲0.26 | 30.94 ▼3.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 23.55 ▲0.46 | 617.22 ▼61.35 | 58.83 ▲7.22 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.21 ▲0.01 | 95.54 ▼13.77 | 42.20 ▼5.88 |
Short Links and Traffic /wp-admin/options-general.php?page=klick_slt | 1,483 | 2.16 | 25.47 | 34.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- slt_details_db_version
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=klick_slt
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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
Please take a closer look at the following
- 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/short-links-and-traffic/includes/class-klick-slt-abstract-logger.php
- > /wp-content/plugins/short-links-and-traffic/includes/class-klick-slt-commands.php
- > /wp-content/plugins/short-links-and-traffic/templates/notices-templates/horizontal-notice.php
- > /wp-content/plugins/short-links-and-traffic/templates/klick-slt-tab-change-log.php
- > /wp-content/plugins/short-links-and-traffic/includes/class-klick-slt-dashboard.php
- > /wp-content/plugins/short-links-and-traffic/includes/class-klick-slt-php-logger.php
- > /wp-content/plugins/short-links-and-traffic/includes/class-klick-slt-redirection.php
- > /wp-content/plugins/short-links-and-traffic/includes/class-klick-slt-abstract-notice.php
- > /wp-content/plugins/short-links-and-traffic/short-links-and-traffic.php
- > /wp-content/plugins/short-links-and-traffic/templates/notices-templates/main-dashboard-notices.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant KLICK_SLT_PLUGIN_URL - assumed 'KLICK_SLT_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/short-links-and-traffic/templates/klick-slt-tab-links.php on line 8
- > PHP Warning
Use of undefined constant KLICK_SLT_PLUGIN_URL - assumed 'KLICK_SLT_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/short-links-and-traffic/templates/klick-slt-tab-our-other-plugins.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function klick_slt() in wp-content/plugins/short-links-and-traffic/templates/klick-slt-tab-links.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/short-links-and-traffic/templates/klick-slt-tab-our-other-plugins.php:3
- > PHP Warning
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)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=klick_slt
- > Network (severe)
wp-content/plugins/short-links-and-traffic//images/our-more-plugins/APV.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=klick_slt
- > Network (severe)
wp-content/plugins/short-links-and-traffic//images/our-more-plugins/ATS.svg - 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
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Short Links and Traffic Add Tab), #2 (Short Links and Traffic List Tab)
short-links-and-traffic/short-links-and-traffic.php 92% from 13 tests
The primary PHP file in "Short Links and Traffic" version 0.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,313 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 303 | 537 | 999 |
SVG | 11 | 0 | 11 | 521 |
CSS | 6 | 26 | 12 | 511 |
JavaScript | 4 | 37 | 160 | 238 |
Markdown | 1 | 24 | 0 | 44 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 6 | 7.41% |
▷ Public methods | 80 | 98.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.23% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/notices/apv_sample_notice_icon2.png | 9.63KB | 4.69KB | ▼ 51.23% |
images/small_icon.png | 18.12KB | 0.45KB | ▼ 97.52% |
images/klick-on-it.png | 6.51KB | 4.02KB | ▼ 38.23% |
images/slt-banner.png | 43.05KB | 21.50KB | ▼ 50.06% |
images/notices/apv_sample_notice_icon3.png | 30.17KB | 6.04KB | ▼ 79.98% |