Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.73ms] Passed 4 tests
A check of server-side resources used by Payment Integration of Sodexo for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 42.75 ▼2.91 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.60 ▼4.75 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 44.34 ▼1.40 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.45 ▼1.36 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.22 ▼1.87 |
Server storage [IO: ▲1.92MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Integration of Sodexo for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.74 ▲0.10 | 1.90 ▲0.02 | 43.48 ▲0.53 |
Dashboard /wp-admin | 2,203 ▲15 | 5.85 ▼0.02 | 102.92 ▲3.11 | 39.01 ▼5.75 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 33.73 ▲0.73 | 34.78 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,542 ▲25 | 22.79 ▲5.04 | 619.43 ▼28.28 | 57.09 ▲4.97 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.18 ▼0.02 | 98.75 ▲4.63 | 43.71 ▲1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #4 (sodexo-zeta page where customer need to fill all details.) image missing
wc-sodexo/woo-sodexo.php 92% from 13 tests
This is the main PHP file of "Payment Integration of Sodexo for WooCommerce" version 2.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-sodexo.php" instead of "woo-sodexo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected523 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 126 | 168 | 523 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 54.55% |
▷ Protected methods | 12 | 36.36% |
▷ Private methods | 3 | 9.09% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 1.75MB with 1.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sodexo.png | 14.58KB | 4.63KB | ▼ 68.27% |
images/Payment_screen.PNG | 50.73KB | 25.31KB | ▼ 50.11% |
images/Payment_screen.v1.png | 226.39KB | 74.66KB | ▼ 67.02% |
images/Sodexo_payment.PNG | 105.31KB | 31.05KB | ▼ 70.51% |
images/logo.v1 (1).v1.png | 510.71KB | 241.04KB | ▼ 52.80% |