73% qyrr-code

Code Review | Qyrr - simply and modern QR-Code creation

WordPress plugin Qyrr - simply and modern QR-Code creation scored73%from 54 tests.

About plugin

  • Plugin page: qyrr-code
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Jan 26, 2020
  • Latest release: Nov 8, 2023
  • Number of updates: 45
  • Update frequency: every 30.8 days
  • Top authors: patrickposner (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /23,412 total downloads

Benchmarks

Plugin footprint 65% 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: ▲5.47MB] [CPU: ▲27.57ms] 75% from 4 tests

An overview of server-side resources used by Qyrr - simply and modern QR-Code creation
Please take the time to fix the following items
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.47MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.24 ▲5.7870.19 ▲27.81
Dashboard /wp-admin9.26 ▲5.9174.29 ▲12.22
Posts /wp-admin/edit.php9.26 ▲5.9081.02 ▲31.13
Add New Post /wp-admin/post-new.php10.19 ▲4.30140.43 ▲39.58
Media Library /wp-admin/upload.php9.26 ▲6.0371.73 ▲39.12
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.2659.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Qyrr - simply and modern QR-Code creation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,975 ▲21314.27 ▼0.111.68 ▼0.0631.79 ▼13.78
Dashboard /wp-admin2,362 ▲1855.52 ▼0.1087.72 ▼7.0176.67 ▲28.62
Posts /wp-admin/edit.php2,283 ▲1831.96 ▲0.0138.95 ▲2.0436.42 ▲0.51
Add New Post /wp-admin/post-new.php6,536 ▲5,01027.68 ▲4.67880.78 ▲212.7035.95 ▼20.86
Media Library /wp-admin/upload.php1,582 ▲1854.23 ▲0.0498.89 ▼9.9379.11 ▲35.13
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,2371.6630.3629.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/qyrr-code/inc/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • can_compress_scripts
    • fs_debug_mode
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • fs_active_plugins
    • db_upgraded
    • widget_recent-posts
    • fs_accounts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/qyrr-code/qyrr-code.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #2, #3 in qyrr-code/assets to your readme.txt
Please take inspiration from this readme.txt

qyrr-code/qyrr-code.php Passed 13 tests

This is the main PHP file of "Qyrr - simply and modern QR-Code creation" version 1.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
QR-Code generation, management and tracking as it should be.

Code Analysis 97% from 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
There were no executable files found in this plugin36,302 lines of code in 162 files:
LanguageFilesBlank linesComment linesLines of code
PHP1298,17417,52734,151
JSON5001,382
PO File1152169369
JavaScript73559205
SVG300177
CSS161015
Markdown1203

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity78.79
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes57
▷ Abstract classes23.51%
▷ Concrete classes5596.49%
▷ Final classes00.00%
Methods1,313
▷ Static methods20515.61%
▷ Public methods91369.54%
▷ Protected methods171.29%
▷ Private methods38329.17%
Functions115
▷ Named functions11095.65%
▷ Anonymous functions54.35%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
inc/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%