83% qrcodes

Code Review | QRCodes

WordPress plugin QRCodes scored83%from 54 tests.

About plugin

  • Plugin page: qrcodes
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.4
  • WordPress version: 6.3.1
  • First release: Mar 1, 2015
  • Latest release: May 12, 2016
  • Number of updates: 15
  • Update frequency: every 30.2 days
  • Top authors: holyhope (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /990 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.97ms] Passed 4 tests

Analyzing server-side resources used by QRCodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.24 ▲4.84
Dashboard /wp-admin3.38 ▲0.0846.38 ▼1.64
Posts /wp-admin/edit.php3.49 ▲0.1447.60 ▲1.88
Add New Post /wp-admin/post-new.php5.98 ▲0.1084.80 ▼11.94
Media Library /wp-admin/upload.php3.30 ▲0.0833.96 ▼0.18
QRCodes /wp-admin/options-general.php?page=qrcodes3.2732.56

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by QRCodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲19814.03 ▼0.3521.30 ▲19.6441.70 ▲1.89
Dashboard /wp-admin2,232 ▲475.14 ▼0.67102.37 ▲2.3637.22 ▼10.03
Posts /wp-admin/edit.php2,096 ▲72.34 ▲0.3741.65 ▲0.2435.03 ▼3.94
Add New Post /wp-admin/post-new.php1,535 ▲723.23 ▲5.22657.10 ▲44.8637.08 ▼18.35
Media Library /wp-admin/upload.php1,415 ▲274.45 ▲0.2187.02 ▼21.8345.10 ▼4.77
QRCodes /wp-admin/options-general.php?page=qrcodes1,1042.4054.0931.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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)
Good news, no errors were detected

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 fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/qrcodes/index.php
    • > /wp-content/plugins/qrcodes/shortcodes.php
    • > /wp-content/plugins/qrcodes/settings.php

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 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: Add descriptions for screenshots #3, #4, #5 in qrcodes/assets to your readme.txt
You can take inspiration from this readme.txt

qrcodes/index.php 92% from 13 tests

This is the main PHP file of "QRCodes" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("qrcodes.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,220 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP371225437
JavaScript575131428
PO File188121176
HTML211080
Markdown110036
SVG15032
JSON10018
CSS12013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions21
▷ Named functions21100.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 files were detected