Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.69ms] Passed 4 tests
Server-side resources used by Wp QrCode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.85 ▼0.83 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.71 ▼1.08 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.86 ▲2.35 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.90 ▲1.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.20 ▼6.43 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 441 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_wpqr_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp QrCode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.10 | 1.83 ▼0.06 | 46.12 ▲0.83 |
Dashboard /wp-admin | 2,192 ▲18 | 5.62 ▲0.02 | 92.36 ▼8.39 | 39.91 ▼1.51 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.01 | 39.01 ▲1.37 | 36.12 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.60 ▲0.05 | 622.49 ▼77.94 | 53.51 ▼13.08 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.21 ▲0.04 | 104.25 ▲0.21 | 44.27 ▲1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_wpqr_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-qrcode/lib/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: qr code scanner, wp qr code, qr code wordpress plugin, qr code shortcodes, qr code in post...
wp-qrcode/wp-qrcode.php Passed 13 tests
Analyzing the main PHP file in "Wp QrCode" version 1.1.1
108 characters long description:
This is a free contemporary multi-purpose responsive plugin will Generate the Qrcode Based on the Shortcode
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-qrcode/lib/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,300 | 1,116 | 4,514 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 272 | |
▷ Static methods | 122 | 44.85% |
▷ Public methods | 268 | 98.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 1.47% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 71 | |
▷ Global constants | 71 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
43 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cache/frame_18.png | 0.22KB | 0.21KB | ▼ 5.26% |
lib/cache/frame_39.png | 0.26KB | 0.23KB | ▼ 9.85% |
lib/cache/frame_13.png | 0.21KB | 0.19KB | ▼ 5.24% |
lib/cache/frame_29.png | 0.23KB | 0.21KB | ▼ 7.76% |
lib/cache/frame_35.png | 0.24KB | 0.21KB | ▼ 9.47% |