Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼1.71ms] Passed 4 tests
Server-side resources used by QRCode Generator - Adsense
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.89 ▲3.24 |
Dashboard /wp-admin | 3.49 ▲0.19 | 47.92 ▼2.55 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 48.09 ▲2.11 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 83.43 ▼2.96 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.06 ▼3.45 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 31 new options
New WordPress options |
---|
qrImgSizeSingle |
theysaidso_admin_options |
codeQRCodeAds3 |
qrMarginPage |
widget_wp_widget_codeqrcode_adsense |
qrImgSizePage |
codeQRCodeSingleWidgetTitle |
qrCodeAlignSingle |
codeQRCodeSingleWidgetID |
codeQRCodePage |
... |
Browser metrics Passed 4 tests
QRCode Generator - Adsense: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.24 ▼1.14 | 4.45 ▲2.63 | 43.80 ▼3.71 |
Dashboard /wp-admin | 2,208 ▲23 | 4.91 ▼0.96 | 101.42 ▼3.96 | 85.56 ▲41.07 |
Posts /wp-admin/edit.php | 2,103 ▲17 | 2.11 ▲0.09 | 33.51 ▼3.05 | 31.76 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 17.46 ▼0.10 | 734.16 ▲36.67 | 58.11 ▼0.03 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.16 ▼0.18 | 99.24 ▼6.80 | 76.53 ▲28.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- widget_wp_widget_codeqrcode
- qrCodeAlignPage
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_wp_widget_codeqrcode_adsense
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/codeqrcode-adsense/codeqrcode-adsense.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/codeqrcode-adsense/codeqrcode-adsense-admin.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== codeqrcode-adsense ===
)
codeqrcode-adsense/codeqrcode-adsense.php 92% from 13 tests
The primary PHP file in "QRCode Generator - Adsense" version 2.1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 265 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,465 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 268 | 84 | 837 |
CSS | 2 | 138 | 159 | 489 |
JavaScript | 1 | 0 | 17 | 139 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 29.33 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 7.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 21.43% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.56MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/codeqrcode-icon.png | 1.43KB | 0.44KB | ▼ 69.28% |
images/cqc-logo-300x225-2.png | 93.94KB | 45.11KB | ▼ 51.98% |
assets/dataTables/images/sort_both.png | 1.11KB | 0.25KB | ▼ 77.46% |
assets/dataTables/images/sort_asc_disabled.png | 1.09KB | 0.17KB | ▼ 84.66% |
images/made_with_love.png | 1.30KB | 1.18KB | ▼ 8.80% |