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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.48ms] Passed 4 tests
A check of server-side resources used by sqrip.ch
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.38 ▼3.89 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.85 ▼13.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.63 ▼1.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.37 ▼15.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.77 ▲0.58 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for sqrip.ch
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▲0.31 | 1.59 ▼0.02 | 42.89 ▲2.89 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▼0.04 | 83.37 ▼7.19 | 37.01 ▲0.73 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.05 | 36.40 ▼0.96 | 32.90 ▼6.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.05 ▲0.09 | 614.87 ▼7.13 | 53.67 ▼9.82 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.27 ▲0.03 | 103.94 ▼3.79 | 44.71 ▼1.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sqrip-swiss-qr-invoice/inc/sqrip-ajax.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function sqrip_get_plugin_option() in wp-content/plugins/sqrip-swiss-qr-invoice/inc/class-sqrip-media-cleaner.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sqrip-swiss-qr-invoice/inc/countries-array.php:5
- > Onetime script executed on
2023-10-22 08:37:07
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 18 tag instead of maximum 10
sqrip-swiss-qr-invoice/sqrip-woocommerce.php 85% from 13 tests
"sqrip.ch" version 1.7.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress 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 ("sqrip-swiss-qr-invoice.php" instead of "sqrip-woocommerce.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 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
Everything looks great! No dangerous files found in this plugin3,288 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 646 | 386 | 2,192 |
JavaScript | 3 | 144 | 38 | 776 |
CSS | 2 | 78 | 35 | 318 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 55 | |
▷ Named functions | 49 | 89.09% |
▷ Anonymous functions | 6 | 10.91% |
Constants | 2 | |
▷ Global constants | 2 | 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.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/payment_confirmed.png | 6.43KB | 5.26KB | ▼ 18.13% |
css/payment_confirmed_blue.png | 14.14KB | 3.85KB | ▼ 72.78% |