84% backend-qr-code-post-link

Code Review | Post QR Code Link

WordPress plugin Post QR Code Link scored84%from 54 tests.

About plugin

  • Plugin page: backend-qr-code-p...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8.3
  • WordPress version: 6.3.1
  • First release: Jan 22, 2022
  • Latest release: Jan 22, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: hummelpups (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /366 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.54MB] [CPU: ▲0.13ms] Passed 4 tests

This is a short check of server-side resources used by Post QR Code Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5644.28 ▼0.04
Dashboard /wp-admin3.87 ▲0.5650.54 ▲4.48
Posts /wp-admin/edit.php3.92 ▲0.5649.72 ▲0.33
Add New Post /wp-admin/post-new.php6.48 ▲0.5996.03 ▼3.12
Media Library /wp-admin/upload.php3.73 ▲0.4937.18 ▲3.36

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Post QR Code Link
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.581.72 ▼0.1338.65 ▼3.42
Dashboard /wp-admin2,206 ▲214.83 ▼0.09110.68 ▲7.5144.76 ▼3.34
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0240.12 ▲1.0036.92 ▼0.29
Add New Post /wp-admin/post-new.php6,619 ▲5,07723.94 ▲5.68904.28 ▲279.5654.98 ▲6.26
Media Library /wp-admin/upload.php1,385 ▼64.17 ▼0.0496.03 ▼3.7144.64 ▲0.18

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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)
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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backend-qr-code-post-link/post-qr-code-link.php:15

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

backend-qr-code-post-link/post-qr-code-link.php 92% from 13 tests

The primary PHP file in "Post QR Code Link" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("backend-qr-code-post-link.php" instead of "post-qr-code-link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,186 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26685032,186

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity24.19
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods134
▷ Static methods6145.52%
▷ Public methods13298.51%
▷ Protected methods00.00%
▷ Private methods21.49%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants32
▷ Global constants32100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
permalink.png0.36KB0.33KB▼ 5.77%