68% dynamic-url-seo

Code Review | Dynamic URL SEO

WordPress plugin Dynamic URL SEO scored68%from 54 tests.

About plugin

  • Plugin page: dynamic-url-seo
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Dec 21, 2017
  • Latest release: Jun 14, 2022
  • Number of updates: 16
  • Update frequency: every 102.3 days
  • Top authors: brainvireinfo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,893 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼4.96ms] Passed 4 tests

This is a short check of server-side resources used by Dynamic URL SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2349.76 ▲6.53
Dashboard /wp-admin3.54 ▲0.2446.51 ▼5.34
Posts /wp-admin/edit.php3.66 ▲0.3044.63 ▼2.02
Add New Post /wp-admin/post-new.php6.14 ▲0.2681.37 ▼13.79
Media Library /wp-admin/upload.php3.47 ▲0.2437.31 ▲1.31
Dynamic URL SEO /wp-admin/admin.php?page=dynamic_url_seo_listing_page3.4531.12
Schema Markup Generator /wp-admin/admin.php?page=dynamic_url_seo_schema_markup3.4343.98
Add New /wp-admin/admin.php?page=dynamic_url_seo_add_new3.4331.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: 2 new tables, 6 new options
New tables
wp_dynamic_custom_url_seo_schema
wp_dynamic_custom_url_seo
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Dynamic URL SEO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9314.78 ▲0.411.89 ▲0.1242.81 ▼4.58
Dashboard /wp-admin2,245 ▲574.90 ▼0.92107.96 ▼11.7839.35 ▼4.14
Posts /wp-admin/edit.php2,128 ▲392.05 ▼0.0034.49 ▼3.6434.10 ▼0.63
Add New Post /wp-admin/post-new.php1,547 ▲3323.05 ▲5.51627.13 ▼45.6855.41 ▼3.54
Media Library /wp-admin/upload.php1,424 ▲364.29 ▲0.09102.46 ▼5.3342.64 ▼2.81
Dynamic URL SEO /wp-admin/admin.php?page=dynamic_url_seo_listing_page9821.8527.9927.99
Schema Markup Generator /wp-admin/admin.php?page=dynamic_url_seo_schema_markup1,4081.9635.0446.16
Add New /wp-admin/admin.php?page=dynamic_url_seo_add_new9931.9326.0127.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 failed, leaving 2 tables in the database
    • wp_dynamic_custom_url_seo_schema
    • wp_dynamic_custom_url_seo
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/dynamic-url-seo/dynamic-url-listing-page.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/dynamic-url-seo/dynamic-url-listing-page.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dynamic-url-seo/dynamic-url-listing-page.php on line 3

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/admin.php?page=dynamic_url_seo_schema_markup
    • > Network (severe)
    wp-content/plugins/dynamic-url-seo/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=dynamic_url_seo_schema_markup
    • > Network (severe)
    wp-content/plugins/dynamic-url-seo/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=dynamic_url_seo_schema_markup
    • > Network (severe)
    wp-content/plugins/dynamic-url-seo/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not 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
Please fix the following attributes:
  • Tags: You are using too many tags: 32 tag instead of maximum 10
You can take inspiration from this readme.txt

dynamic-url-seo/dynamic-url-seo.php Passed 13 tests

"Dynamic URL SEO" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
117 characters long description:
This plugin is used to add meta title, keywords and description for dynamic URLs which are not available in database.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,473 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3210471,251
CSS2285130
JavaScript18092

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected