90% doqrcode

Code Review | QRCode

WordPress plugin QRCode scored90%from 54 tests.

About plugin

  • Plugin page: doqrcode
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 22, 2019
  • Latest release: May 27, 2022
  • Number of updates: 11
  • Update frequency: every 91.7 days
  • Top authors: wpdo5ea (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /3,649 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by QRCode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.79 ▼0.95
Dashboard /wp-admin3.31 ▲0.0147.33 ▲0.17
Posts /wp-admin/edit.php3.36 ▲0.0146.83 ▼4.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.30 ▼10.29
Media Library /wp-admin/upload.php3.23 ▲0.0132.57 ▲0.07

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

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

Browser metrics Passed 4 tests

Checking browser requirements for QRCode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.101.61 ▲0.0239.04 ▼1.05
Dashboard /wp-admin2,206 ▲145.86 ▲0.82101.05 ▼16.0338.41 ▼1.42
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0038.60 ▼0.9633.38 ▼1.88
Add New Post /wp-admin/post-new.php1,541 ▲1523.14 ▲0.13643.16 ▼30.2562.39 ▲6.26
Media Library /wp-admin/upload.php1,391 ▲64.14 ▼0.12101.68 ▲2.0744.30 ▼1.09

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
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: barcode, qrcode shortcode, doqrcode, qrcode

doqrcode/doqrcode.php Passed 13 tests

The entry point to "QRCode" version 1.2.1 is a PHP file that has certain tags in its header comment area
27 characters long description:
WordPress QR Code generator

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
Success! There were no dangerous files found in this plugin2,398 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37515902,398

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity22.78
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods146
▷ Static methods6947.26%
▷ Public methods14196.58%
▷ Protected methods00.00%
▷ Private methods53.42%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants35
▷ Global constants35100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wp_assets/icon-128x128.png21.85KB10.03KB▼ 54.09%
wp_assets/icon-256x256.png50.37KB23.06KB▼ 54.21%