84% qrcode-generator

Code Review | QRCode Generator

WordPress plugin QRCode Generator scored84%from 54 tests.

About plugin

  • Plugin page: qrcode-generator
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2014
  • Latest release: Dec 16, 2014
  • Number of updates: 4
  • Update frequency: every 83.5 days
  • Top authors: brainesia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /997 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.00MB] [CPU: ▼7.33ms] Passed 4 tests

An overview of server-side resources used by QRCode Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.88 ▼1.50
Dashboard /wp-admin3.31 ▲0.0042.67 ▼7.53
Posts /wp-admin/edit.php3.36 ▲0.0042.88 ▼2.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.05 ▼16.94
Media Library /wp-admin/upload.php3.23 ▲0.0031.81 ▼2.48

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for QRCode Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.23 ▼1.451.83 ▲0.2442.43 ▼1.28
Dashboard /wp-admin2,206 ▲185.86 ▲0.97103.82 ▼4.9439.35 ▼2.35
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0835.95 ▼7.2934.26 ▼3.32
Add New Post /wp-admin/post-new.php1,533 ▼923.27 ▲4.95623.18 ▼68.9163.46 ▼4.85
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0199.77 ▼0.7441.57 ▼5.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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_action() in wp-content/plugins/qrcode-generator/qrcode-generator.php:96

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: qrcode, qr, generator

qrcode-generator/qrcode-generator.php Passed 13 tests

"QRCode Generator" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
A plugin to generate QR code for your WordPress posts/pages

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
Good job! No executable or dangerous file extensions detected72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP117872

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin