83% qr-code-scan-me-anywhere

Code Review | Social QR Code Scan Me Anywhere

WordPress plugin Social QR Code Scan Me Anywhere scored83%from 54 tests.

About plugin

  • Plugin page: qr-code-scan-me-a...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 25, 2012
  • Latest release: Oct 2, 2012
  • Number of updates: 49
  • Update frequency: every 0.1 days
  • Top authors: mypatricks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.49ms] Passed 4 tests

Analyzing server-side resources used by Social QR Code Scan Me Anywhere
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.24 ▼3.13
Dashboard /wp-admin3.38 ▲0.0448.88 ▼10.21
Posts /wp-admin/edit.php3.43 ▲0.0845.80 ▼4.89
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.90 ▼15.72
Media Library /wp-admin/upload.php3.31 ▲0.0835.64 ▲2.37

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Social QR Code Scan Me Anywhere
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲13913.67 ▼1.0812.76 ▲10.8842.49 ▼0.52
Dashboard /wp-admin2,206 ▲154.88 ▼0.97107.48 ▲1.2538.00 ▼5.71
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0035.88 ▼2.3931.81 ▼4.97
Add New Post /wp-admin/post-new.php1,536 ▲323.05 ▲0.06619.21 ▲5.8453.37 ▲2.81
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.00121.50 ▲19.7646.87 ▲4.15

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/qr-code-scan-me-anywhere/qr-code-scan-me-anywhere.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Tags: There are too many tags (22 tag instead of maximum 10)
  • Screenshots: These screenshots require images: #1 (QR Code of current page), #2 (Click "Scan Me" to view QR Code), #3 (QR code for social profile), #4 (Setting for social QR Code)
You can look at the official readme.txt

qr-code-scan-me-anywhere/qr-code-scan-me-anywhere.php 92% from 13 tests

"Social QR Code Scan Me Anywhere" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

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 plugin356 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14939355
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 images were found in this plugin