Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.67MB] [CPU: ▼4.90ms] Passed 4 tests
Server-side resources used by QR Links
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 49.17 ▲7.70 |
Dashboard /wp-admin | 3.98 ▲0.68 | 52.77 ▲2.30 |
Posts /wp-admin/edit.php | 4.03 ▲0.68 | 53.43 ▼2.41 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 85.22 ▼23.04 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 40.44 ▲3.56 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QR Links
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.08 | 1.84 ▼0.26 | 44.78 ▲0.20 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.04 | 85.42 ▼6.19 | 43.27 ▲8.16 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.05 | 34.44 ▼2.64 | 36.76 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.16 ▲0.07 | 651.22 ▼18.56 | 49.76 ▼13.65 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.01 | 97.63 ▼3.24 | 44.63 ▼1.87 |
QR Links /wp-admin/qrlinks.php | 26 | 0.42 | 0.11 | 15.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-links/admin/admin-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-links/admin/admin-page.php:8
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/qr-links/lib/qrlib/tools/merge.php on line 65
- > PHP Warning
file_get_contents(wp-content/plugins/qr-links/lib/qrlib/tools/../VERSION): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/qr-links/lib/qrlib/tools/merge.php on line 62
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/qrlinks.php
- > Network (severe)
wp-admin/qrlinks.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (screenshot-1.png) image required
qr-links/qr-links.php 92% from 13 tests
The primary PHP file in "QR Links" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 254 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/qr-links/lib/qrlib/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 769 | 1,196 | 3,044 |
PO File | 1 | 16 | 17 | 61 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 30.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 70 | 41.18% |
▷ Public methods | 165 | 97.06% |
▷ Protected methods | 2 | 1.18% |
▷ Private methods | 3 | 1.76% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 48 | |
▷ Global constants | 39 | 81.25% |
▷ Class constants | 9 | 18.75% |
▷ Public constants | 9 | 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
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 62.26KB | 26.43KB | ▼ 57.55% |