Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼15.93ms] Passed 4 tests
Server-side resources used by Paiement par Carte DAHABIA et Carte CIB for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 27.34 ▼17.77 |
Dashboard /wp-admin | 3.34 ▼0.00 | 50.12 ▼13.99 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 53.23 ▼10.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.38 ▼20.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 37.95 ▲1.91 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Paiement par Carte DAHABIA et Carte CIB for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,466 ▼320 | 14.64 ▲0.27 | 0.51 ▼1.27 | 18.88 ▼20.29 |
Dashboard /wp-admin | 2,204 ▲37 | 5.51 ▼0.10 | 85.92 ▼12.05 | 38.83 ▼0.80 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 1.95 ▼0.00 | 35.31 ▼6.38 | 31.48 ▼8.14 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.91 ▲0.43 | 705.64 ▲0.90 | 75.25 ▲22.12 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.18 ▲0.00 | 97.79 ▼5.13 | 44.97 ▲0.21 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function get_meta() on null in wp-content/plugins/paiement-par-carte-dahabia-et-cib-for-woocommerce/template-parts/checkout/thankyou-page-header.php:5
- > PHP Fatal error
Uncaught Error: Class 'PPCD_Satimipay' not found in wp-content/plugins/paiement-par-carte-dahabia-et-cib-for-woocommerce/template-parts/checkout/thankyou-page.php:2
- > PHP Notice
Undefined variable: order in wp-content/plugins/paiement-par-carte-dahabia-et-cib-for-woocommerce/template-parts/checkout/thankyou-page-header.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: dahabia, algerie, paiement, satim, carte...
paiement-par-carte-dahabia-et-cib-for-woocommerce/paiement-par-carte-dahabia-et-cib-for-woocommerce.php Passed 13 tests
The main file in "Paiement par Carte DAHABIA et Carte CIB for WooCommerce" v. 2.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
Extension officielle certifiée par la SATIM pour le e-paiement en Algérie (DZ).
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 plugin740 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 151 | 66 | 712 |
CSS | 1 | 4 | 0 | 27 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 21 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 30.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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.10MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/satimipay_icon.png | 96.66KB | 36.48KB | ▼ 62.26% |
assets/images/satimipay_error.png | 6.10KB | 3.26KB | ▼ 46.44% |