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.01MB] [CPU: ▼15.92ms] Passed 4 tests
Server-side resources used by QR Coder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.56 ▼2.22 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.09 ▼15.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.84 ▼9.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.60 ▼35.83 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.84 ▼1.05 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by QR Coder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.23 ▼1.18 | 1.81 ▲0.07 | 43.48 ▲4.85 |
Dashboard /wp-admin | 2,206 ▲30 | 4.88 ▲0.02 | 100.51 ▼51.18 | 39.21 ▼21.04 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.05 ▲0.00 | 37.15 ▼22.12 | 32.24 ▼18.70 |
Add New Post /wp-admin/post-new.php | 1,514 ▼7 | 17.54 ▼5.67 | 672.59 ▼173.77 | 61.35 ▼5.44 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.23 ▼0.01 | 101.32 ▼10.10 | 43.75 ▼4.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 62× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-settings-container/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-settings-container/examples/simple.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-qrcode/tests/Helpers/PolynomialTest.php:22
- > PHP Warning
require_once(wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-settings-container/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-settings-container/examples/simple.php on line 13
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-qrcode/examples/html.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\Settings\\SettingsContainerAbstract' not found in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-qrcode/src/QROptions.php:52
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-qrcode/public/qrcode.php on line 15
- > PHP Warning
require_once(wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-qrcode/examples/svg.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCodeTest\\Output\\QROutputTestAbstract' not found in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-qrcode/tests/Output/QRImagickTest.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-qrcode/tests/Data/DatainterfaceTestAbstract.php:26
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QROutputAbstract' not found in wp-content/plugins/qr-coder/inc/vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: qr code
qr-coder/qr_coder.php 92% from 13 tests
The main PHP script in "QR Coder" version 2.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qr-coder.php" instead of "qr_coder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,956 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 76 | 1,914 | 7,794 | 5,091 |
JSON | 3 | 0 | 0 | 255 |
Markdown | 3 | 51 | 0 | 224 |
YAML | 6 | 46 | 9 | 164 |
HTML | 1 | 26 | 0 | 137 |
XML | 3 | 0 | 0 | 72 |
Dockerfile | 1 | 5 | 2 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 52 | |
▷ Abstract classes | 5 | 9.62% |
▷ Concrete classes | 47 | 90.38% |
▷ Final classes | 16 | 34.04% |
Methods | 291 | |
▷ Static methods | 19 | 6.53% |
▷ Public methods | 215 | 73.88% |
▷ Protected methods | 72 | 24.74% |
▷ Private methods | 4 | 1.37% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 51 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 51 | 100.00% |
▷ Public constants | 44 | 86.27% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/vendor/chillerlan/php-qrcode/examples/octocat.png | 2.41KB | 2.46KB | 0.00% |
inc/vendor/chillerlan/php-qrcode/examples/example_image.png | 2.23KB | 1.09KB | ▼ 50.94% |
inc/vendor/chillerlan/php-qrcode/examples/example_svg.png | 15.55KB | 6.70KB | ▼ 56.90% |