Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.21ms] Passed 4 tests
A check of server-side resources used by API QRCode Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.66 ▼3.84 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.85 ▼5.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.80 ▼5.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 99.56 ▲2.18 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.70 ▼2.00 |
API QRCode Generator /wp-admin/options-general.php?page=apiqr-settings | 3.20 | 34.85 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by API QRCode Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.29 ▼0.96 | 1.59 ▼0.50 | 43.47 ▼2.19 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.98 | 96.65 ▼6.45 | 41.55 ▼3.14 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 35.36 ▼2.00 | 33.70 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.23 ▼0.03 | 671.72 ▲40.50 | 68.10 ▲15.99 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.22 ▼0.01 | 104.29 ▲8.93 | 41.88 ▼2.38 |
API QRCode Generator /wp-admin/options-general.php?page=apiqr-settings | 916 | 2.06 | 24.61 | 62.10 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 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 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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/api-qrcode-generator/wp-api-qrcode.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/api-qrcode-generator/wp-qrcode.php:51
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: There are too many tags (21 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #1 (Shows a example content site with the generated qr code), #2 (Shows the using of the shortcode within the backend in wp-admin), #3 (The QR Code panel wp-admin), #4 (The QR Code menu setting panel wp-adim)
api-qrcode-generator/wp-api-qrcode.php 85% from 13 tests
The primary PHP file in "API QRCode Generator" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("api-qrcode-generator.php" instead of "wp-api-qrcode.php")
- Description: The description should be shorter than 140 characters (currently 345 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected133 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 37 | 133 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
5 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 21.52KB | 10.44KB | ▼ 51.48% |
screenshot-1.png | 15.54KB | 7.67KB | ▼ 50.67% |
screenshot-3.png | 45.29KB | 24.13KB | ▼ 46.71% |
screenshot-4.png | 4.69KB | 2.86KB | ▼ 39.08% |
qrcode.png | 0.49KB | 0.49KB | 0.00% |