Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > User error in wp-content/plugins/ekoma/includes/class-ekoma-activator.php+36
Your website must use HTTPS (with a valid SSL).
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.20ms] Passed 4 tests
A check of server-side resources used by Ekoma: Loyalty & Referrals
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.78 ▼2.70 |
Dashboard /wp-admin | 3.32 ▲0.01 | 41.62 ▼4.04 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.21 ▲2.65 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.14 ▼20.77 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.79 ▼1.27 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Ekoma: Loyalty & Referrals: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.19 ▼1.06 | 1.69 ▼0.23 | 36.15 ▼7.29 |
Dashboard /wp-admin | 2,225 ▲37 | 4.87 ▼1.00 | 111.98 ▲11.29 | 42.27 ▲1.98 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.00 ▼0.05 | 40.44 ▲0.78 | 37.36 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 23.23 ▲4.89 | 674.30 ▲68.90 | 50.98 ▼4.63 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.22 ▲0.05 | 92.27 ▼12.70 | 40.66 ▼2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ekoma/admin/partials/ekoma-admin-display.php
- > /wp-content/plugins/ekoma/public/partials/ekoma-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: customers, points, woocommerce, referral, loyalty...
ekoma/ekoma.php 92% from 13 tests
The main PHP script in "Ekoma: Loyalty & Referrals" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 220 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin355 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 122 | 514 | 346 |
JavaScript | 2 | 4 | 54 | 6 |
SVG | 1 | 0 | 0 | 3 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 1 | 3.57% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 1.67MB with 0.91MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 2.54KB | 1.21KB | ▼ 52.65% |
assets/icon-256x256.png | 5.22KB | 3.13KB | ▼ 40.03% |
assets/screenshot-1.png | 393.39KB | 151.45KB | ▼ 61.50% |
assets/screenshot-5.png | 263.08KB | 112.05KB | ▼ 57.41% |
assets/screenshot-6.png | 376.25KB | 142.79KB | ▼ 62.05% |