83% bms-qr-code

Code Review | QR Code Generator

WordPress plugin QR Code Generator scored83%from 54 tests.

About plugin

  • Plugin page: bms-qr-code
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.5
  • WordPress version: 6.3.1
  • First release: Apr 16, 2016
  • Latest release: Aug 6, 2016
  • Number of updates: 5
  • Update frequency: every 126.4 days
  • Top authors: bijon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,102 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by QR Code Generator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.93 ▼7.61
Dashboard /wp-admin3.31 ▼0.0450.07 ▼20.46
Posts /wp-admin/edit.php3.36 ▲0.0046.08 ▼7.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.22 ▼2.04
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▲0.52

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for QR Code Generator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.27 ▲0.031.93 ▼0.2644.36 ▼4.79
Dashboard /wp-admin2,195 ▲155.57 ▼0.0990.70 ▼3.2838.57 ▼1.77
Posts /wp-admin/edit.php2,103 ▲62.02 ▼0.0038.13 ▼2.9834.85 ▼2.98
Add New Post /wp-admin/post-new.php1,526 ▼923.30 ▲5.23680.59 ▲53.8658.00 ▼19.98
Media Library /wp-admin/upload.php1,403 ▲64.15 ▼0.07100.12 ▼3.5643.54 ▼0.46

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bms-qr-code/bms-qr-code.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
  • License: No value
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Shows a example content site with the generated qr code), #2 (Shows the using of the shortcode within the backend in wp-admin), #3 (The QR Code with activated shadow)
Please take inspiration from this readme.txt

bms-qr-code/bms-qr-code.php Passed 13 tests

The main PHP script in "QR Code Generator" version 1.0 is automatically included on every request by WordPress
29 characters long description:
Make a QR code for your link!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151030

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin