Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.98ms] Passed 4 tests
Analyzing server-side resources used by QRCode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.79 ▼0.95 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.33 ▲0.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.83 ▼4.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.30 ▼10.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.57 ▲0.07 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for QRCode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.10 | 1.61 ▲0.02 | 39.04 ▼1.05 |
Dashboard /wp-admin | 2,206 ▲14 | 5.86 ▲0.82 | 101.05 ▼16.03 | 38.41 ▼1.42 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.00 | 38.60 ▼0.96 | 33.38 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.14 ▲0.13 | 643.16 ▼30.25 | 62.39 ▲6.26 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.14 ▼0.12 | 101.68 ▲2.07 | 44.30 ▼1.09 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: barcode, qrcode shortcode, doqrcode, qrcode
doqrcode/doqrcode.php Passed 13 tests
The entry point to "QRCode" version 1.2.1 is a PHP file that has certain tags in its header comment area
27 characters long description:
WordPress QR Code generator
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
Success! There were no dangerous files found in this plugin2,398 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 751 | 590 | 2,398 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 146 | |
▷ Static methods | 69 | 47.26% |
▷ Public methods | 141 | 96.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.42% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 35 | 100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp_assets/icon-128x128.png | 21.85KB | 10.03KB | ▼ 54.09% |
wp_assets/icon-256x256.png | 50.37KB | 23.06KB | ▼ 54.21% |