93% qr-code-generate

Code Review | QR Generate Link

WordPress plugin QR Generate Link scored 93% from 54 tests.

About plugin

  • Plugin page: qr-code-generate
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 5.8.1
  • First release: Mar 19, 2015
  • Latest release: Mar 23, 2015
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: nativamultimidia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 923 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by QR Generate Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0140.15 ▼3.72
Dashboard /wp-admin3.07 ▲0.0251.42 ▼16.38
Posts /wp-admin/edit.php3.13 ▲0.0250.19 ▼5.62
Add New Post /wp-admin/post-new.php5.43 ▲0.00101.83 ▼549.97
Media Library /wp-admin/upload.php3.02 ▲0.0238.34 ▲2.01
QR Code Generate /wp-admin/plugins.php?page=qr-generate_link-page2.9932.38

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 299 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by QR Generate Link
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,687 ▲11515.55 ▼0.0613.15 ▲3.1451.30 ▲6.29
Dashboard /wp-admin2,975 ▲445.86 ▼0.08155.64 ▼18.07116.16 ▼7.41
Posts /wp-admin/edit.php2,747 ▲82.72 ▲0.0080.41 ▼1.9791.68 ▼8.34
Add New Post /wp-admin/post-new.php1,689 ▲618.04 ▼0.29413.52 ▼33.60118.84 ▼3.75
Media Library /wp-admin/upload.php1,755 ▼525.04 ▲0.01178.24 ▲11.61127.11 ▲2.09
QR Code Generate /wp-admin/plugins.php?page=qr-generate_link-page1,0852.0560.8277.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      QRcode : Data do not exist. in wp-content/plugins/qr-code-generate/include-files/php/qr_img.php on line 88

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% 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
4 plugin tags: generate qr, gerador de codigos qr, qr, qr code

qr-code-generate/qr-generate-link.php 69% from 13 tests

This is the main PHP file of "QR Generate Link" version 1.0, 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:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages/")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("qr-code-generate.php" instead of "qr-generate-link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,193 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP212585539
Perl313597517
JavaScript1183395
PO File24442

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
43 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include-files/image/qrv2.png0.15KB0.14KB▼ 4.52%
include-files/image/qrv3.png0.15KB0.14KB▼ 5.19%
include-files/image/qrv21.png0.25KB0.23KB▼ 7.84%
include-files/image/qrv27.png0.25KB0.23KB▼ 7.39%
include-files/image/qrv8.png0.22KB0.21KB▼ 5.41%