78% sdk-wp-dynamic-url

Code Review | SDK WP DYNAMIC URL

WordPress plugin SDK WP DYNAMIC URL scored78%from 54 tests.

About plugin

  • Plugin page: sdk-wp-dynamic-url
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.1
  • WordPress version: 6.3.1
  • First release: Dec 18, 2018
  • Latest release: Dec 21, 2018
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: sdkwebmasters (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.96ms] Passed 4 tests

Server-side resources used by SDK WP DYNAMIC URL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.53 ▼2.95
Dashboard /wp-admin3.33 ▲0.0360.59 ▲4.13
Posts /wp-admin/edit.php3.45 ▲0.0949.64 ▼2.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.56 ▼14.48
Media Library /wp-admin/upload.php3.26 ▲0.0242.71 ▲4.08
SDK URL OPTIONS /wp-admin/options-general.php?page=sdk-wp-dynamic-url/sdk-wp-dynamic-url.php3.2230.35

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
sdk_wp_dynamic_url_options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for SDK WP DYNAMIC URL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.19 ▼1.421.57 ▼0.1642.32 ▲0.87
Dashboard /wp-admin2,210 ▲254.85 ▼0.02112.64 ▼17.4248.12 ▼1.84
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0237.20 ▼2.4033.28 ▼2.56
Add New Post /wp-admin/post-new.php1,536 ▲322.97 ▼0.53656.97 ▲5.7973.92 ▲17.89
Media Library /wp-admin/upload.php1,389 ▲14.18 ▼0.01124.03 ▲20.0247.07 ▼1.01
SDK URL OPTIONS /wp-admin/options-general.php?page=sdk-wp-dynamic-url/sdk-wp-dynamic-url.php7472.0626.1724.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sdk-wp-dynamic-url/sdk-wp-dynamic-url.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sdk-wp-dynamic-url/sdk-wp-dynamic-url.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sdk-wp-dynamic-url/sdk-wp-dynamic-url.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sdk-wp-dynamic-url/sdk-wp-dynamic-url.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/sdk-wp-dynamic-url/sdk-wp-core.php
    • > /wp-content/plugins/sdk-wp-dynamic-url/sdk_wp_dynamic_url_admin.php
    • > /wp-content/plugins/sdk-wp-dynamic-url/sdk-wp-dynamic-url.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

sdk-wp-dynamic-url/sdk-wp-dynamic-url.php Passed 13 tests

The main file in "SDK WP DYNAMIC URL" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
Dynamic URL, Plugin allow you to add dynamic URL instead of static site_url() function.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin90 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34412390

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1593.75%
▷ Protected methods16.25%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin