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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.64ms] Passed 4 tests
Server-side resources used by WpQrCode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.16 ▲4.20 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.08 ▼7.96 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.03 ▲6.70 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.03 ▼13.42 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.80 ▼1.38 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_wpqrcode |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WpQrCode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,085 ▲314 | 15.06 ▲0.44 | 23.26 ▲21.46 | 41.22 ▼6.29 |
Dashboard /wp-admin | 2,225 ▲37 | 5.98 ▲0.11 | 100.79 ▼16.55 | 38.86 ▼6.70 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.44 ▲0.44 | 42.26 ▲2.12 | 33.91 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.23 ▲4.88 | 666.91 ▲39.72 | 36.79 ▼15.06 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.49 ▲0.32 | 98.41 ▼4.58 | 40.71 ▼4.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_wpqrcode
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpqrcode/wpqrcode.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (QrCode widget on Sidebar), #2 (Admin Settings)
wpqrcode/wpqrcode.php 92% from 13 tests
Analyzing the main PHP file in "WpQrCode" version 1.0.3
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 482 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin6,798 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,544 | 1,597 | 6,656 |
PHP | 1 | 25 | 11 | 142 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 6.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/hs.png | 2.62KB | 7.54KB | 0.00% |
screenshot-1.png | 64.28KB | 24.59KB | ▼ 61.74% |
banner-772x250.png | 80.63KB | 33.58KB | ▼ 58.36% |
js/hv.png | 2.80KB | 7.32KB | 0.00% |
screenshot-2.png | 60.36KB | 21.83KB | ▼ 63.84% |