Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.97MB] [CPU: ▲3.05ms] Passed 4 tests
Analyzing server-side resources used by QR Link Generator for WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.65 | 40.25 ▲1.51 |
Dashboard /wp-admin | 4.41 ▲1.10 | 52.53 ▲2.40 |
Posts /wp-admin/edit.php | 4.43 ▲1.07 | 58.51 ▲9.40 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 100.10 ▲1.24 |
Media Library /wp-admin/upload.php | 4.32 ▲1.08 | 42.48 ▲7.05 |
QR Link Generator for WP /wp-admin/options-general.php?page=qr_link_generator_for_wp_settings | 4.63 | 42.57 |
Server storage [IO: ▲4.02MB] [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: 513 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QR Link Generator for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲71 | 14.34 ▼0.01 | 1.62 ▼0.05 | 40.93 ▲0.93 |
Dashboard /wp-admin | 2,238 ▲58 | 5.75 ▲0.10 | 97.01 ▲1.67 | 41.77 ▼4.07 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.19 ▲0.24 | 43.16 ▼0.55 | 35.58 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 23.50 ▲0.28 | 689.10 ▲24.70 | 62.96 ▲13.11 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.28 ▲0.10 | 103.88 ▼9.77 | 44.71 ▼11.05 |
QR Link Generator for WP /wp-admin/options-general.php?page=qr_link_generator_for_wp_settings | 1,329 | 2.38 | 54.08 | 29.29 |
Uninstaller [IO: ▲4.02MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the followingZombie WordPress options were found after uninstall: 6 options
- This plugin has failed uninstalling correctly, leaving 513 files (4.02MB) in the plugin directory
- (new file) admin/js/qr-link-generator-for-wp-admin.js
- (new file) includes/class-qr-link-generator-for-wp-activator.php
- (new file) admin/class-qr-link-generator-for-wp-admin.php
- (new file) admin/index.php
- (new file) README.txt
- (new file) LICENSE.txt
- (new file) admin/css/qr-link-generator-for-wp-admin.css
- (new file) admin/partials/qr-link-generator-for-wp-admin-display.php
- (new file) includes/class-qr-link-generator-for-wp-i18n.php
- (new file) includes/class-qr-link-generator-for-wp-deactivator.php
- ...
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/qr-link-generator-for-wp/public/partials/qr-link-generator-for-wp-public-display.php
- 108× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\Settings\\SettingsContainerAbstract' not found in wp-content/plugins/qr-link-generator-for-wp/vendor/chillerlan/php-settings-container/tests/TestContainer.php:23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qr-link-generator-for-wp/vendor/chillerlan/php-qrcode/tests/QROptionsTest.php:23
- > PHP Fatal error
Uncaught Error: Interface 'chillerlan\\Settings\\SettingsContainerInterface' not found in wp-content/plugins/qr-link-generator-for-wp/vendor/chillerlan/php-settings-container/src/SettingsContainerAbstract.php:18
- > PHP Warning
require_once(wp-content/plugins/qr-link-generator-for-wp/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/qr-link-generator-for-wp/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/qr-link-generator-for-wp/vendor/chillerlan/php-qrcode/examples/html.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/qr-link-generator-for-wp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QRImage' not found in wp-content/plugins/qr-link-generator-for-wp/vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php:24
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Data\\QRDataAbstract' not found in wp-content/plugins/qr-link-generator-for-wp/vendor/chillerlan/php-qrcode/src/Data/Kanji.php:25
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/qr-link-generator-for-wp/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/qr-link-generator-for-wp/vendor/chillerlan/php-qrcode/examples/text.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/qr-link-generator-for-wp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in qr-link-generator-for-wp/assets to your readme.txt
qr-link-generator-for-wp/qr-link-generator-for-wp.php Passed 13 tests
Analyzing the main PHP file in "QR Link Generator for WP" version 1.0.5
83 characters long description:
Plugin to Generate QR Code with link inserted by the user in front-end with a form.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin63,515 lines of code in 341 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 151 | 4,729 | 15,573 | 14,599 |
JSON | 8 | 0 | 0 | 7,061 |
CSS | 15 | 257 | 1,194 | 4,597 |
Markdown | 7 | 439 | 0 | 1,506 |
JavaScript | 11 | 377 | 637 | 1,475 |
Sass | 18 | 312 | 29 | 1,452 |
YAML | 6 | 52 | 7 | 198 |
XML | 4 | 6 | 11 | 167 |
HTML | 1 | 26 | 0 | 137 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 129 | |
▷ Abstract classes | 14 | 10.85% |
▷ Concrete classes | 115 | 89.15% |
▷ Final classes | 16 | 13.91% |
Methods | 951 | |
▷ Static methods | 119 | 12.51% |
▷ Public methods | 740 | 77.81% |
▷ Protected methods | 167 | 17.56% |
▷ Private methods | 44 | 4.63% |
Functions | 45 | |
▷ Named functions | 42 | 93.33% |
▷ Anonymous functions | 3 | 6.67% |
Constants | 62 | |
▷ Global constants | 5 | 8.06% |
▷ Class constants | 57 | 91.94% |
▷ Public constants | 50 | 87.72% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/chillerlan/php-qrcode/examples/octocat.png | 2.41KB | 2.46KB | 0.00% |
vendor/cmb2/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |