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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.07ms] Passed 4 tests
An overview of server-side resources used by Sifalo Pay
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.33 ▲1.27 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.52 ▼5.58 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.99 ▼0.24 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 91.88 ▼3.74 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 37.34 ▲2.36 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sifalo Pay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.77 ▲0.33 | 1.66 ▼0.02 | 43.28 ▲2.43 |
Dashboard /wp-admin | 2,200 ▲12 | 5.90 ▲1.01 | 99.72 ▼10.34 | 41.05 ▼4.26 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 1.99 ▼0.00 | 40.70 ▼3.83 | 37.19 ▼3.53 |
Add New Post /wp-admin/post-new.php | 1,519 ▼16 | 23.16 ▲0.05 | 629.96 ▼34.43 | 58.78 ▲6.78 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.23 ▲0.07 | 105.46 ▲4.31 | 46.88 ▲2.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sifalo-pay/public/partials/sifalo-pay-public-display.php
- > /wp-content/plugins/sifalo-pay/admin/partials/sifalo-pay-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: These screenshots require images: #1 (Install & Activate SifaloPay), #2 (Activate payment gateway in woocommerce), #3 (Add configuration)
sifalo-pay/sifalo-pay.php Passed 13 tests
The main PHP script in "Sifalo Pay" version 1.0.7 is automatically included on every request by WordPress
106 characters long description:
Accept eWallet Payments ( EVC, Zaad, Sahal, eDahab, Premier Wallet ...etc ) securely on your online store.
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 detected494 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 241 | 548 | 432 |
JavaScript | 3 | 54 | 56 | 44 |
CSS | 3 | 68 | 8 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/logo.png | 135.56KB | 52.45KB | ▼ 61.31% |
public/logo0.png | 46.32KB | 17.83KB | ▼ 61.51% |