10% wp-qrcode-by-google-chart

Code Review | WP QRCode by Google Chart

WordPress plugin WP QRCode by Google Chart scored 10% from 54 tests.

About plugin

  • Plugin page: wp-qrcode-by-goog...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-3.8.0
  • WordPress version: 6.3.1
  • First release: Feb 1, 2014
  • Latest release: Feb 1, 2014
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: kmusiclife (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 727 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-includes/functions.php+1130
    Undefined offset: 0

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.46ms] Passed 4 tests

A check of server-side resources used by WP QRCode by Google Chart
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.34 ▼40.68
Dashboard /wp-admin2.05 ▼1.266.80 ▼39.40
Posts /wp-admin/edit.php2.05 ▼1.315.17 ▼38.52
Add New Post /wp-admin/post-new.php2.05 ▼3.845.87 ▼83.23
Media Library /wp-admin/upload.php2.05 ▼1.185.98 ▼26.62
WP QRCode by Google Chart /wp-admin/options-general.php?page=wp-qrcode-gc-settings2.055.42

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP QRCode by Google Chart
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.081.68 ▼0.0144.23 ▲3.97
Dashboard /wp-admin2,210 ▲184.89 ▼0.04117.77 ▲5.2443.29 ▲3.73
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0333.48 ▼0.4834.20 ▲0.58
Add New Post /wp-admin/post-new.php1,522 ▼623.47 ▲5.28661.62 ▲56.2758.23 ▲8.24
Media Library /wp-admin/upload.php1,395 ▲44.20 ▼0.0899.09 ▼1.6943.99 ▼2.04
WP QRCode by Google Chart /wp-admin/options-general.php?page=wp-qrcode-gc-settings7982.0325.6026.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-includes/functions.php+1130
    Undefined offset: 0
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-qrcode-gc-settings
    • > Notice in wp-includes/functions.php+1179
    Undefined offset: 0
    • > GET request to /wp-admin/options-general.php?page=wp-qrcode-gc-settings
    • > Notice in wp-includes/functions.php+1179
    Undefined offset: 1
    • > GET request to /wp-admin/options-general.php?page=wp-qrcode-gc-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-qrcode-gc-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wp-qrcode-by-google-chart/index.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-qrcode-by-google-chart/views/backend/settings.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: code, google chart, permalink, qr, barcode...

wp-qrcode-by-google-chart/index.php 85% from 13 tests

The principal PHP file in "WP QRCode by Google Chart" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 260 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-qrcode-by-google-chart.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin166 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22810166

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1894.74%
▷ Public methods1157.89%
▷ Protected methods00.00%
▷ Private methods842.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
PNG images were not found in this plugin