Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.64ms] Passed 4 tests
Server-side resources used by QR Redirector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.17 ▲1.99 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.24 ▼4.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.14 ▲0.22 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 76.59 ▼24.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.42 ▲2.30 |
QR Redirects /wp-admin/edit.php?post_type=qrcode | 3.28 | 33.95 |
Add QR Redirect /wp-admin/post-new.php?post_type=qrcode | 3.30 | 43.51 |
Server storage [IO: ▲16.80MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 190 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by QR Redirector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.25 ▼0.11 | 1.74 ▲0.12 | 43.11 ▼1.20 |
Dashboard /wp-admin | 2,233 ▲59 | 5.66 ▲0.09 | 79.22 ▼8.84 | 70.67 ▲25.35 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.98 ▼0.03 | 34.16 ▼3.05 | 34.26 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.51 ▲0.49 | 671.55 ▲15.72 | 52.72 ▼1.61 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.13 ▼0.02 | 93.96 ▲0.26 | 72.92 ▲28.67 |
QR Redirects /wp-admin/edit.php?post_type=qrcode | 1,171 | 2.31 | 44.94 | 28.84 |
Add QR Redirect /wp-admin/post-new.php?post_type=qrcode | 1,905 | 3.63 | 86.46 | 72.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=qrcode
- > Notice in wp-content/plugins/qr-redirector/qr-redirector.php+371
Trying to get property 'ID' of non-object
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
- 93× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Color\\ColorInterface' not found in wp-content/plugins/qr-redirector/vendor/bacon/bacon-qr-code/src/Renderer/Color/Alpha.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\ErrorCorrectionLevel\\ErrorCorrectionLevelInterface' not found in wp-content/plugins/qr-redirector/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelQuartile.php:7
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Path\\OperationInterface' not found in wp-content/plugins/qr-redirector/vendor/bacon/bacon-qr-code/src/Renderer/Path/Move.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\Label\\Font\\FontInterface' not found in wp-content/plugins/qr-redirector/vendor/endroid/qr-code/src/Label/Font/NotoSans.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\Label\\Alignment\\LabelAlignmentInterface' not found in wp-content/plugins/qr-redirector/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentLeft.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\Matrix\\MatrixInterface' not found in wp-content/plugins/qr-redirector/vendor/endroid/qr-code/src/Matrix/Matrix.php:12
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Image\\ImageBackEndInterface' not found in wp-content/plugins/qr-redirector/vendor/bacon/bacon-qr-code/src/Renderer/Image/EpsImageBackEnd.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\Writer\\WriterInterface' not found in wp-content/plugins/qr-redirector/vendor/endroid/qr-code/src/Writer/EpsWriter.php:14
- > PHP Fatal error
Uncaught Error: Class 'DASPRiD\\Enum\\AbstractEnum' not found in wp-content/plugins/qr-redirector/vendor/dasprid/enum/test/WeekDay.php:17
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Color\\ColorInterface' not found in wp-content/plugins/qr-redirector/vendor/bacon/bacon-qr-code/src/Renderer/Color/Gray.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=qrcode
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=qrcode 295:18 Uncaught SyntaxError: Unexpected token '}'
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (QR Redirector index screen), #2 (QR Redirector edit screen), #3 (QR Redirector edit screen), #4 (QR Redirector edit screen)
qr-redirector/qr-redirector.php Passed 13 tests
The primary PHP file in "QR Redirector" version 2.0.2 is used by WordPress to initiate all plugin functionality
140 characters long description:
QR Redirector lets you create dynamic QR Codes by a generating a QR code for a URL on your site, and redirecting that URL anywhere you want.
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 plugin11,210 lines of code in 171 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 158 | 2,481 | 2,435 | 10,490 |
JSON | 5 | 0 | 0 | 313 |
Markdown | 3 | 80 | 0 | 305 |
JavaScript | 2 | 17 | 24 | 50 |
CSS | 1 | 6 | 4 | 35 |
XML | 1 | 1 | 0 | 16 |
YAML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 26 | |
Traits | 0 | |
Classes | 125 | |
▷ Abstract classes | 2 | 1.60% |
▷ Concrete classes | 123 | 98.40% |
▷ Final classes | 103 | 83.74% |
Methods | 765 | |
▷ Static methods | 112 | 14.64% |
▷ Public methods | 668 | 87.32% |
▷ Protected methods | 4 | 0.52% |
▷ Private methods | 93 | 12.16% |
Functions | 31 | |
▷ Named functions | 19 | 61.29% |
▷ Anonymous functions | 12 | 38.71% |
Constants | 107 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 107 | 100.00% |
▷ Public constants | 23 | 21.50% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.44MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/bacon/bacon-qr-code/test/Integration/__snapshots__/files/ImagickRenderingTest__testIssue79__1.png | 8.17KB | 4.75KB | ▼ 41.88% |
screenshot-1.png | 86.61KB | 33.75KB | ▼ 61.04% |
screenshot-4.png | 111.05KB | 46.79KB | ▼ 57.87% |
vendor/bacon/bacon-qr-code/test/Integration/__snapshots__/files/ImagickRenderingTest__testGenericQrCode__1.png | 3.04KB | 1.72KB | ▼ 43.30% |
assets/qr-menu-icon-dark.png | 0.76KB | 0.54KB | ▼ 28.81% |