Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.97ms] Passed 4 tests
Analyzing server-side resources used by QRCodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.24 ▲4.84 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.38 ▼1.64 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.60 ▲1.88 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 84.80 ▼11.94 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 33.96 ▼0.18 |
QRCodes /wp-admin/options-general.php?page=qrcodes | 3.27 | 32.56 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by QRCodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 14.03 ▼0.35 | 21.30 ▲19.64 | 41.70 ▲1.89 |
Dashboard /wp-admin | 2,232 ▲47 | 5.14 ▼0.67 | 102.37 ▲2.36 | 37.22 ▼10.03 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.34 ▲0.37 | 41.65 ▲0.24 | 35.03 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.23 ▲5.22 | 657.10 ▲44.86 | 37.08 ▼18.35 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.45 ▲0.21 | 87.02 ▼21.83 | 45.10 ▼4.77 |
QRCodes /wp-admin/options-general.php?page=qrcodes | 1,104 | 2.40 | 54.09 | 31.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/qrcodes/index.php
- > /wp-content/plugins/qrcodes/shortcodes.php
- > /wp-content/plugins/qrcodes/settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #3, #4, #5 in qrcodes/assets to your readme.txt
qrcodes/index.php 92% from 13 tests
This is the main PHP file of "QRCodes" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("qrcodes.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,220 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 71 | 225 | 437 |
JavaScript | 5 | 75 | 131 | 428 |
PO File | 1 | 88 | 121 | 176 |
HTML | 2 | 11 | 0 | 80 |
Markdown | 1 | 10 | 0 | 36 |
SVG | 1 | 5 | 0 | 32 |
JSON | 1 | 0 | 0 | 18 |
CSS | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected