84% qr-block

Code Review | QR Block

WordPress plugin QR Block scored84%from 54 tests.

About plugin

  • Plugin page: qr-block
  • Plugin version: 0.0.13
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 29, 2021
  • Latest release: Jan 23, 2023
  • Number of updates: 49
  • Update frequency: every 11.1 days
  • Top authors: retrofox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,553 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.04ms] Passed 4 tests

An overview of server-side resources used by QR Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0237.48 ▼0.93
Dashboard /wp-admin3.36 ▲0.0250.22 ▼4.71
Posts /wp-admin/edit.php3.41 ▲0.0148.39 ▼1.35
Add New Post /wp-admin/post-new.php5.90 ▼0.03103.67 ▼5.18
Media Library /wp-admin/upload.php3.28 ▲0.0136.20 ▲2.20

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for QR Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.34 ▼0.371.88 ▲0.3545.88 ▲5.80
Dashboard /wp-admin2,198 ▲185.59 ▼0.0790.84 ▼4.2743.96 ▲3.64
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0435.90 ▼3.7037.12 ▲2.25
Add New Post /wp-admin/post-new.php6,379 ▲4,85329.61 ▲6.64928.47 ▲250.6659.73 ▲4.48
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0397.79 ▼8.5842.76 ▼4.21

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× 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-block/qr-block.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
5 plugin tags: qr, qr-block, qr-code, block, blocks

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

This is the main PHP file of "QR Block" version 0.0.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
The fantastic QR Code block for the Block Editor.

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 detected9,596 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13,1642,8639,454
CSS29285
JSON10051
PHP21166

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin