Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-includes/functions.php+1130
Undefined offset: 0
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.46ms] Passed 4 tests
A check of server-side resources used by WP QRCode by Google Chart
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.34 ▼40.68 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.80 ▼39.40 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.17 ▼38.52 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.87 ▼83.23 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.98 ▼26.62 |
WP QRCode by Google Chart /wp-admin/options-general.php?page=wp-qrcode-gc-settings | 2.05 | 5.42 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP QRCode by Google Chart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.08 | 1.68 ▼0.01 | 44.23 ▲3.97 |
Dashboard /wp-admin | 2,210 ▲18 | 4.89 ▼0.04 | 117.77 ▲5.24 | 43.29 ▲3.73 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.03 | 33.48 ▼0.48 | 34.20 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,522 ▼6 | 23.47 ▲5.28 | 661.62 ▲56.27 | 58.23 ▲8.24 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▼0.08 | 99.09 ▼1.69 | 43.99 ▼2.04 |
WP QRCode by Google Chart /wp-admin/options-general.php?page=wp-qrcode-gc-settings | 798 | 2.03 | 25.60 | 26.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-includes/functions.php+1130
Undefined offset: 0
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-qrcode-gc-settings
- > Notice in wp-includes/functions.php+1179
Undefined offset: 0
- > GET request to /wp-admin/options-general.php?page=wp-qrcode-gc-settings
- > Notice in wp-includes/functions.php+1179
Undefined offset: 1
- > GET request to /wp-admin/options-general.php?page=wp-qrcode-gc-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp-qrcode-gc-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wp-qrcode-by-google-chart/index.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-qrcode-by-google-chart/views/backend/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: code, google chart, permalink, qr, barcode...
wp-qrcode-by-google-chart/index.php 85% from 13 tests
The principal PHP file in "WP QRCode by Google Chart" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 260 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-qrcode-by-google-chart.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin166 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 28 | 10 | 166 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 18 | 94.74% |
▷ Public methods | 11 | 57.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 42.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin