74% dynamic-qr-code-saver

Code Review | Dynamic QR Code URL Saver

WordPress plugin Dynamic QR Code URL Saver scored 74% from 54 tests.

About plugin

  • Plugin page: dynamic-qr-code-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Jan 28, 2016
  • Number of updates: 2
  • Update frequency: every 28.0 days
  • Top authors: Funk Design (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,184 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.00ms] Passed 4 tests

Analyzing server-side resources used by Dynamic QR Code URL Saver
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.15 ▼3.53
Dashboard /wp-admin3.31 ▲0.0141.36 ▼5.67
Posts /wp-admin/edit.php3.36 ▲0.0154.13 ▲6.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.52 ▼9.66
Media Library /wp-admin/upload.php3.23 ▲0.0033.86 ▼1.12

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Dynamic QR Code URL Saver
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲6013.65 ▼1.101.67 ▼0.6839.84 ▼12.36
Dashboard /wp-admin2,223 ▲355.82 ▼0.05112.23 ▼6.7794.76 ▲39.82
Posts /wp-admin/edit.php2,109 ▲202.00 ▲0.0037.94 ▲3.8135.14 ▼1.09
Add New Post /wp-admin/post-new.php1,548 ▲617.97 ▼0.42682.03 ▲57.9863.63 ▲8.98
Media Library /wp-admin/upload.php1,404 ▲164.16 ▼0.04103.26 ▲6.5577.14 ▲30.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_dynamic_qr
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-qr-code-saver/main.php:19

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 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === dynamic-qr-code-saver === )
The official readme.txt is a good inspiration

dynamic-qr-code-saver/main.php 92% from 13 tests

"Dynamic QR Code URL Saver" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dynamic-qr-code-saver.php" instead of "main.php")

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
No dangerous file extensions were detected203 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19430203

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png0.60KB0.91KB0.00%