90% qr-code-block

Code Review | QR-Code Block

WordPress plugin QR-Code Block scored90%from 54 tests.

About plugin

  • Plugin page: qr-code-block
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 26, 2017
  • Latest release: Oct 29, 2017
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: Soean (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,313 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by QR-Code Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.11 ▼3.76
Dashboard /wp-admin3.31 ▲0.0156.66 ▲3.57
Posts /wp-admin/edit.php3.36 ▲0.0151.34 ▼3.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.84 ▼14.24
Media Library /wp-admin/upload.php3.23 ▲0.0042.14 ▲5.41

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for QR-Code Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.19 ▼0.382.67 ▲0.9644.79 ▼0.30
Dashboard /wp-admin2,192 ▲125.53 ▼0.1292.19 ▼2.8438.96 ▼0.04
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0338.52 ▲2.2632.58 ▼4.96
Add New Post /wp-admin/post-new.php1,534 ▲823.08 ▲0.19663.40 ▼26.6738.23 ▼19.71
Media Library /wp-admin/upload.php1,397 ▼34.28 ▲0.07124.71 ▲10.8152.22 ▲3.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: qr code, gutenberg, qrcode, block

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

Analyzing the main PHP file in "QR-Code Block" version 1.1.0
40 characters long description:
QR-Code Blocks for the Gutenberg Editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected23 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP142920
JavaScript20123

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin