90% post-url-qr-code

Code Review | POST URL QR CODE

WordPress plugin POST URL QR CODE scored90%from 54 tests.

About plugin

  • Plugin page: post-url-qr-code
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Oct 12, 2019
  • Latest release: Jun 10, 2022
  • Number of updates: 9
  • Update frequency: every 108.3 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,671 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.02MB] [CPU: ▼1.53ms] Passed 4 tests

Analyzing server-side resources used by POST URL QR CODE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.28 ▲3.64
Dashboard /wp-admin3.33 ▲0.0243.49 ▼6.27
Posts /wp-admin/edit.php3.38 ▲0.0245.87 ▼2.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.86 ▲5.28
Media Library /wp-admin/upload.php3.25 ▲0.0235.04 ▼1.28

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for POST URL QR CODE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.241.66 ▼0.0941.91 ▲0.71
Dashboard /wp-admin2,209 ▲215.86 ▲1.00103.58 ▼1.4239.89 ▼4.83
Posts /wp-admin/edit.php2,068 ▼212.00 ▲0.0035.98 ▼4.5532.74 ▼1.75
Add New Post /wp-admin/post-new.php1,542 ▲918.44 ▼4.55630.02 ▼78.0352.97 ▼6.25
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0693.76 ▼15.4141.56 ▼2.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: post url qr code, qr code, page url qr code, qr code auto generator

post-url-qr-code/conig.php 92% from 13 tests

The main PHP file in "POST URL QR CODE" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("post-url-qr-code.php" instead of "conig.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin47 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2224047

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-1.png19.78KB7.19KB▼ 63.64%