Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.55ms] Passed 4 tests
An overview of server-side resources used by SmartLink Dynamic URLs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 49.11 ▲11.29 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.06 ▼1.84 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 45.86 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.52 ▼7.05 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.31 ▼0.96 |
Settings /wp-admin/admin.php?page=settings | 3.26 | 30.66 |
Smartlink DU /wp-admin/admin.php?page=smartlink_admin | 3.26 | 31.24 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
SmartLink Dynamic URLs: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.29 ▼1.13 | 1.87 ▼0.02 | 43.23 ▲2.41 |
Dashboard /wp-admin | 2,224 ▲36 | 4.93 ▲0.02 | 104.43 ▼3.56 | 71.78 ▲31.36 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.02 ▲0.01 | 33.88 ▼2.32 | 31.83 ▼0.14 |
Add New Post /wp-admin/post-new.php | 7,023 ▲5,509 | 20.43 ▲2.76 | 940.41 ▲269.81 | 70.75 ▲17.11 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.20 ▲0.02 | 92.76 ▼5.42 | 80.26 ▲31.73 |
Settings /wp-admin/admin.php?page=settings | 912 | 2.04 | 31.53 | 56.90 |
Smartlink DU /wp-admin/admin.php?page=smartlink_admin | 930 | 2.07 | 23.08 | 35.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > Notice in wp-content/plugins/smartlink-dinamic-urls/Incs/back_settings.php+68
Trying to access array offset on value of type bool
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/smartlink-dinamic-urls/Incs/back_home.php
- > /wp-content/plugins/smartlink-dinamic-urls/smartlink-du.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smartlink-dinamic-urls/Incs/back_settings.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
smartlink-dinamic-urls/smartlink-du.php 85% from 13 tests
The principal PHP file in "SmartLink Dynamic URLs" v. 1.0.9 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("smartlink-dinamic-urls.php" instead of "smartlink-du.php")
- Description: Keep the plugin description shorter than 140 characters (currently 211 characters long)
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
No dangerous file extensions were detected497 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 65 | 78 | 376 |
CSS | 2 | 18 | 7 | 96 |
JavaScript | 1 | 6 | 2 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.85 |
▷ 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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/info-icon.png | 1.93KB | 1.64KB | ▼ 15.28% |
assets/smartlink-icon.png | 1.08KB | 1.00KB | ▼ 7.14% |
assets/more-info-icon.png | 20.43KB | 7.84KB | ▼ 61.62% |
assets/icon-256x256.png | 54.01KB | 17.44KB | ▼ 67.71% |
assets/banner-772x250.png | 60.74KB | 22.59KB | ▼ 62.81% |