72% smartlink-dinamic-urls

Code Review | SmartLink Dynamic URLs

WordPress plugin SmartLink Dynamic URLs scored 72% from 54 tests.

About plugin

  • Plugin page: smartlink-dinamic...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2018
  • Latest release: Dec 29, 2022
  • Number of updates: 94
  • Update frequency: every 17.3 days
  • Top authors: sebastopolys (98.94%)Otto42 (2.13%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 2,858 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0549.11 ▲11.29
Dashboard /wp-admin3.37 ▲0.0750.06 ▼1.84
Posts /wp-admin/edit.php3.48 ▲0.1345.86 ▼0.35
Add New Post /wp-admin/post-new.php5.95 ▲0.0785.52 ▼7.05
Media Library /wp-admin/upload.php3.29 ▲0.0634.31 ▼0.96
Settings /wp-admin/admin.php?page=settings3.2630.66
Smartlink DU /wp-admin/admin.php?page=smartlink_admin3.2631.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.29 ▼1.131.87 ▼0.0243.23 ▲2.41
Dashboard /wp-admin2,224 ▲364.93 ▲0.02104.43 ▼3.5671.78 ▲31.36
Posts /wp-admin/edit.php2,119 ▲302.02 ▲0.0133.88 ▼2.3231.83 ▼0.14
Add New Post /wp-admin/post-new.php7,023 ▲5,50920.43 ▲2.76940.41 ▲269.8170.75 ▲17.11
Media Library /wp-admin/upload.php1,418 ▲274.20 ▲0.0292.76 ▼5.4280.26 ▲31.73
Settings /wp-admin/admin.php?page=settings9122.0431.5356.90
Smartlink DU /wp-admin/admin.php?page=smartlink_admin9302.0723.0835.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP66578376
CSS218796
JavaScript16225

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 code0.35
Average class complexity13.50
▷ Minimum class complexity4.00
▷ Maximum class complexity23.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/info-icon.png1.93KB1.64KB▼ 15.28%
assets/smartlink-icon.png1.08KB1.00KB▼ 7.14%
assets/more-info-icon.png20.43KB7.84KB▼ 61.62%
assets/icon-256x256.png54.01KB17.44KB▼ 67.71%
assets/banner-772x250.png60.74KB22.59KB▼ 62.81%