Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.96ms] Passed 4 tests
Server-side resources used by LoyaltyDog
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.83 ▼9.21 |
Dashboard /wp-admin | 3.34 ▼0.01 | 52.61 ▼14.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.99 ▼1.95 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.78 ▼9.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.47 ▼2.43 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 88 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
loyalty_dog_version |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for LoyaltyDog
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.28 ▼0.26 | 2.04 ▲0.30 | 39.92 ▼4.91 |
Dashboard /wp-admin | 2,210 ▲36 | 5.52 ▼0.06 | 83.28 ▼8.46 | 40.18 ▼0.66 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▼0.01 | 44.90 ▲7.80 | 33.17 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.05 ▼0.14 | 679.76 ▲36.09 | 60.20 ▲7.66 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.24 ▲0.06 | 97.95 ▼4.69 | 41.66 ▼3.43 |
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
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: woocommerce, points, offer, loyalty, ecommerce...
loyaltydog/loyaltydog.php Passed 13 tests
The main file in "LoyaltyDog" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
LoyaltyDog - Digital Mobile Loyalty Program for On-Premise and Online Customers
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 plugin13,368 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 2,955 | 746 | 4,935 |
CSS | 9 | 686 | 86 | 3,058 |
Sass | 6 | 460 | 137 | 1,663 |
PHP | 16 | 405 | 857 | 1,527 |
HTML | 3 | 345 | 48 | 1,243 |
SVG | 1 | 0 | 0 | 685 |
PO File | 1 | 71 | 85 | 190 |
JSON | 1 | 0 | 0 | 36 |
Markdown | 1 | 27 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.73 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 18 | 20.00% |
▷ Public methods | 82 | 91.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.89% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.52MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/docs-en/images/PointsEarnedActions.png | 37.52KB | 9.62KB | ▼ 74.37% |
assets/docs-en/images/LoyaltyDog-API.png | 21.37KB | 8.82KB | ▼ 58.74% |
assets/docs-en/images/EasySignUp.png | 100.70KB | 32.66KB | ▼ 67.57% |
assets/docs-en/images/Support-Portal.png | 101.57KB | 34.57KB | ▼ 65.96% |
assets/docs-en/assets/css/images/bg.png | 34.97KB | 9.36KB | ▼ 73.23% |