62% qr-master

Code Review | QR Master

WordPress plugin QR Master scored 62% from 54 tests.

About plugin

  • Plugin page: qr-master
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Dec 15, 2012
  • Latest release: Feb 21, 2015
  • Number of updates: 24
  • Update frequency: every 33.3 days
  • Top authors: studi7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 4,308 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.48ms] Passed 4 tests

An overview of server-side resources used by QR Master
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.97 ▼6.18
Dashboard /wp-admin3.40 ▲0.0945.10 ▼1.35
Posts /wp-admin/edit.php3.51 ▲0.1548.34 ▼1.28
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.78 ▼4.51
Media Library /wp-admin/upload.php3.32 ▲0.0935.62 ▼1.88
QR Master /wp-admin/tools.php?page=qr_master3.3631.51

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 446 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for QR Master
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.44 ▲0.151.66 ▼0.1939.00 ▼10.67
Dashboard /wp-admin2,210 ▲225.88 ▼0.02106.81 ▼4.4640.92 ▼2.28
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0539.52 ▲3.2338.71 ▲6.53
Add New Post /wp-admin/post-new.php1,539 ▲323.20 ▼0.15668.74 ▲31.9757.96 ▼1.30
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0394.24 ▼15.1543.92 ▼1.43
QR Master /wp-admin/tools.php?page=qr_master1,6152.5049.5768.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/qr-master/lib/phpqrcode/index.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-master/qr_master.php:122
    • > PHP Fatal error
      Uncaught Error: Call to undefined function path_join() in wp-content/plugins/qr-master/get_qrcode.php:20
    • > PHP Notice
      Undefined variable: srcQR in wp-content/plugins/qr-master/qr_shortcode_view.php on line 20
    • > PHP Notice
      Undefined variable: valueQR in wp-content/plugins/qr-master/qr_shortcode_view.php on line 37
    • > PHP Notice
      Undefined variable: autoQR in wp-content/plugins/qr-master/qr_shortcode_view.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/qr-master/qr_shortcode_view.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function path_join() in wp-content/plugins/qr-master/qr_master_admin.php:30

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/tools.php?page=qr_master
    • > Network (severe)
    wp-content/plugins/qr-master/css/images/ui-bg_flat_0_fff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/tools.php?page=qr_master
    • > Network (severe)
    wp-content/plugins/qr-master/css/images/ui-bg_flat_0_333_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/tools.php?page=qr_master
    • > Network (severe)
    wp-content/plugins/qr-master/css/images/ui-bg_flat_65_0074A2_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: qr code, qr, shortcode, mobile

qr-master/qr_master.php 92% from 13 tests

"QR Master" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("qr-master.php" instead of "qr_master.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
These items require your attention
  • For security reasons, never distribute binary or executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/qr-master/lib/phpqrcode/tools/merge.bat
9,138 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,5852,1206,588
CSS42681001,812
PO File4308599645
JavaScript1232689
Bourne Shell1002
DOS Batch1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity32.30
▷ Minimum class complexity1.00
▷ Maximum class complexity292.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods366
▷ Static methods12233.33%
▷ Public methods26672.68%
▷ Protected methods9626.23%
▷ Private methods41.09%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants97
▷ Global constants97100.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
42 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/phpqrcode/cache/frame_37.png0.27KB0.25KB▼ 7.89%
img/developers-logo.png6.94KB3.00KB▼ 56.79%
lib/phpqrcode/cache/frame_23.png0.21KB0.20KB▼ 8.18%
lib/phpqrcode/cache/frame_22.png0.22KB0.21KB▼ 6.19%
lib/phpqrcode/cache/frame_20.png0.22KB0.20KB▼ 8.00%