84% youlikeshare-qrcode

Code Review | YouLikeShare QRCode

WordPress plugin YouLikeShare QRCode scored 84% from 54 tests.

About plugin

  • Plugin page: youlikeshare-qrcode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.8
  • WordPress version: 6.3.1
  • First release: Feb 6, 2014
  • Latest release: Feb 8, 2014
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: youlikeshare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 838 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.21ms] Passed 4 tests

Server-side resources used by YouLikeShare QRCode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.22 ▼2.19
Dashboard /wp-admin3.32 ▲0.0146.72 ▼4.28
Posts /wp-admin/edit.php3.37 ▲0.0151.38 ▲4.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.88 ▼14.28
Media Library /wp-admin/upload.php3.24 ▲0.0135.65 ▼0.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for YouLikeShare QRCode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.17 ▼1.411.94 ▲0.2441.97 ▼0.11
Dashboard /wp-admin2,206 ▲155.91 ▲0.03100.05 ▼6.2339.19 ▲1.53
Posts /wp-admin/edit.php2,086 ▼62.02 ▼0.0136.21 ▼0.5830.07 ▼0.96
Add New Post /wp-admin/post-new.php1,535 ▼923.00 ▲4.95600.48 ▼34.9357.08 ▼8.88
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0694.80 ▼8.2341.69 ▼4.16

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

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/youlikeshare-qrcode/youlikeshare-qrcode.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: qrcode generator, qr code, qrcode, online qrcode, error correction level

youlikeshare-qrcode/youlikeshare-qrcode.php 92% from 13 tests

"YouLikeShare QRCode" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)

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
Success! There were no dangerous files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151235

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin