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.00MB] [CPU: ▼3.47ms] Passed 4 tests
A check of server-side resources used by Qero - Loyalty Program for your store
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.88 ▲2.60 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.78 ▲3.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.53 ▼8.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.17 ▼7.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.47 ▼0.59 |
Account /wp-admin/admin.php?page=qero-for-wp-account | 3.00 | 23.64 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 68 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_qero_logs |
wp_qero_discount_points |
wp_qero_association |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
qero_endpoint_ |
widget_theysaidso_widget |
db_upgraded |
qero_last_event_done |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Qero - Loyalty Program for your store
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲36 | 13.25 ▼1.19 | 1.84 ▲0.06 | 45.46 ▼2.41 |
Dashboard /wp-admin | 2,206 ▼0 | 4.85 ▼1.03 | 113.06 ▲17.81 | 42.19 ▲3.46 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.03 | 34.13 ▼0.96 | 34.42 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.77 ▼0.03 | 630.58 ▼37.28 | 57.98 ▲3.04 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.02 | 98.40 ▼6.89 | 45.42 ▼2.55 |
Account /wp-admin/admin.php?page=qero-for-wp-account | 28 | 0.44 | 0.09 | 3.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- qero_last_event_done
- qero_endpoint_
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/qero-loyalty-program-for-your-store/public/partials/qero-for-wp-public-display.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/qero-loyalty-program-for-your-store/templates/plain/qero-invite-item-email.php:7
- > PHP Fatal error
Uncaught Error: Class 'Qero_For_Wp' not found in wp-content/plugins/qero-loyalty-program-for-your-store/admin/class-qero-for-wp-admin.php:25
- > PHP Notice
Undefined variable: email_heading in wp-content/plugins/qero-loyalty-program-for-your-store/templates/plain/qero-invite-item-email.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/qero-loyalty-program-for-your-store/templates/html/qero-invite-item-email.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/qero-loyalty-program-for-your-store/public/templates/thankyou/qero-for-wp-thankyou.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/qero-loyalty-program-for-your-store/public/templates/checkout/qero-for-wp-cart-points.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/qero-loyalty-program-for-your-store/emails/class-qero-invite-email.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=qero-for-wp-account
- > Network (severe)
wp-admin/admin.php?page=qero-for-wp-account - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% 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:
- Donate link: Invalid URI ("")
qero-loyalty-program-for-your-store/qero-for-wp.php 85% from 13 tests
The main PHP file in "Qero - Loyalty Program for your store" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("qero-loyalty-program-for-your-store.php" instead of "qero-for-wp.php")
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
Good job! No executable or dangerous file extensions detected5,131 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 751 | 888 | 2,903 |
JavaScript | 13 | 222 | 61 | 1,179 |
PO File | 2 | 236 | 304 | 603 |
CSS | 4 | 67 | 15 | 421 |
SVG | 2 | 0 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 19 | 11.66% |
▷ Public methods | 147 | 90.18% |
▷ Protected methods | 1 | 0.61% |
▷ Private methods | 15 | 9.20% |
Functions | 15 | |
▷ Named functions | 12 | 80.00% |
▷ Anonymous functions | 3 | 20.00% |
Constants | 23 | |
▷ Global constants | 6 | 26.09% |
▷ Class constants | 17 | 73.91% |
▷ Public constants | 17 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/_qerobutton.png | 2.92KB | 2.43KB | ▼ 16.95% |
admin/assets/qero.png | 2.86KB | 1.26KB | ▼ 55.77% |
admin/assets/logo_qero.png | 11.01KB | 3.58KB | ▼ 67.52% |