83% visual-qr-code-generator

Code Review | Visual QR Code

WordPress plugin Visual QR Code scored83%from 54 tests.

About plugin

  • Plugin page: visual-qr-code-ge...
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Jan 10, 2013
  • Latest release: Jan 10, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: amirhev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.02ms] Passed 4 tests

A check of server-side resources used by Visual QR Code
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.33 ▼2.58
Dashboard /wp-admin3.35 ▲0.0450.47 ▼1.62
Posts /wp-admin/edit.php3.40 ▲0.0448.59 ▲2.81
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.28 ▼19.75
Media Library /wp-admin/upload.php3.27 ▲0.0436.85 ▼0.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
visual_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Visual QR Code
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.38 ▲0.031.87 ▼0.2943.40 ▼0.14
Dashboard /wp-admin2,215 ▲415.81 ▲0.0588.48 ▼14.1966.35 ▲23.45
Posts /wp-admin/edit.php2,135 ▲322.05 ▲0.0535.86 ▼0.8334.23 ▼6.70
Add New Post /wp-admin/post-new.php1,548 ▲2221.51 ▼1.67759.70 ▲58.1553.29 ▼12.90
Media Library /wp-admin/upload.php1,426 ▲264.29 ▲0.08101.41 ▼6.9372.72 ▲27.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • visual_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/visual-qr-code-generator/visualead-widget.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

visual-qr-code-generator/visualead-widget.php 85% from 13 tests

The principal PHP file in "Visual QR Code" v. 1.3.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("visual-qr-code-generator.php" instead of "visualead-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,990 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12281371,310
CSS13722496
PHP18822184

PHP code Passed 2 tests

This is a very shot review of 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.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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected