68% dynamic-qr-code

Code Review | Dynamic QR Code - generator

WordPress plugin Dynamic QR Code - generator scored68%from 54 tests.

About plugin

  • Plugin page: dynamic-qr-code
  • Plugin version: 0.9.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2022
  • Latest release: May 22, 2023
  • Number of updates: 47
  • Update frequency: every 9.7 days
  • Top authors: sosidee (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /9,894 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▼7.29ms] Passed 4 tests

This is a short check of server-side resources used by Dynamic QR Code - generator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.33 ▼5.53
Dashboard /wp-admin3.65 ▲0.3545.95 ▼6.11
Posts /wp-admin/edit.php3.76 ▲0.4148.53 ▲2.94
Add New Post /wp-admin/post-new.php6.24 ▲0.3585.71 ▼12.16
Media Library /wp-admin/upload.php3.57 ▲0.3533.65 ▼5.34
Settings /wp-admin/admin.php?page=sos-dynamic-qr-code-35.3651.74
QR-Codes /wp-admin/admin.php?page=sos-dynamic-qr-code-03.7337.75
Scan logs /wp-admin/admin.php?page=sos-dynamic-qr-code-23.7335.82
sos-dynamic-qr-code-1 /wp-admin/admin.php?page=sos-dynamic-qr-code-13.8045.12

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 103 new files
Database: 3 new tables, 7 new options
New tables
wp_sos_dqc_logs
wp_sos_dqc_qrcodes
wp_sos_dqc_otkeys
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
sos-dynamic-qr-code_db-version
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Dynamic QR Code - generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11213.59 ▼0.801.86 ▲0.0643.82 ▼1.73
Dashboard /wp-admin2,237 ▲494.81 ▼0.06107.90 ▲2.3144.24 ▲0.38
Posts /wp-admin/edit.php2,120 ▲312.01 ▲0.0039.39 ▲2.2835.40 ▲0.54
Add New Post /wp-admin/post-new.php6,272 ▲4,73226.27 ▲8.02906.01 ▲294.7158.61 ▲4.13
Media Library /wp-admin/upload.php1,422 ▲404.24 ▲0.0198.46 ▼2.5643.56 ▼1.79
Settings /wp-admin/admin.php?page=sos-dynamic-qr-code-31,1271.8435.1836.35
QR-Codes /wp-admin/admin.php?page=sos-dynamic-qr-code-09112.0427.9128.34
Scan logs /wp-admin/admin.php?page=sos-dynamic-qr-code-21,0132.0224.7723.23
sos-dynamic-qr-code-1 /wp-admin/admin.php?page=sos-dynamic-qr-code-12,2421.6927.3730.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables were found after uninstall: 3 tables
    • wp_sos_dqc_otkeys
    • wp_sos_dqc_qrcodes
    • wp_sos_dqc_logs
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • sos-dynamic-qr-code_db-version
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
  • 64× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/dynamic-qr-code/sos/wp/elementor/widget.php
    • > /wp-content/plugins/dynamic-qr-code/src/lib/phpqrcode.php
    • > /wp-content/plugins/dynamic-qr-code/sos/wp/elementor/section.php
    • > /wp-content/plugins/dynamic-qr-code/sos/wp/asset.php
    • > /wp-content/plugins/dynamic-qr-code/src/app.php
    • > /wp-content/plugins/dynamic-qr-code/src/dotw.php
    • > /wp-content/plugins/dynamic-qr-code/sos/wp/data/cluster.php
    • > /wp-content/plugins/dynamic-qr-code/sos/wp/be/navtab.php
    • > /wp-content/plugins/dynamic-qr-code/src/form/config.php
    • > /wp-content/plugins/dynamic-qr-code/sos/wp/cookie.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'SOSIDEE_DYNAMIC_QRCODE\\SosPlugin' not found in wp-content/plugins/dynamic-qr-code/admin/logs.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SOSIDEE_DYNAMIC_QRCODE\\SosPlugin' not found in wp-content/plugins/dynamic-qr-code/admin/config.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SOSIDEE_DYNAMIC_QRCODE\\SosPlugin' not found in wp-content/plugins/dynamic-qr-code/admin/qrcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'SOSIDEE_DYNAMIC_QRCODE\\SosPlugin' not found in wp-content/plugins/dynamic-qr-code/admin/qrcode.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: qr code, dynamic qr code generator, dynamic qr code

dynamic-qr-code/dynamic-qr-code.php 85% from 13 tests

This is the main PHP file of "Dynamic QR Code - generator" version 0.9.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin10,879 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP682,1421,93910,657
JavaScript5120144
CSS26476
HTML1001
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.38
▷ Minimum class complexity1.00
▷ Maximum class complexity136.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces9
Interfaces0
Traits5
Classes74
▷ Abstract classes11.35%
▷ Concrete classes7398.65%
▷ Final classes00.00%
Methods676
▷ Static methods17626.04%
▷ Public methods54680.77%
▷ Protected methods547.99%
▷ Private methods7611.24%
Functions39
▷ Named functions1743.59%
▷ Anonymous functions2256.41%
Constants131
▷ Global constants3425.95%
▷ Class constants9774.05%
▷ Public constants9395.88%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin