Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/paymob-for-woocommerce/init_paymob.php+78
array_key_exists() expects parameter 2 to be array, bool given
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.85ms] Passed 4 tests
An overview of server-side resources used by Paymob for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.42 ▼3.15 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.92 ▼5.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.59 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.04 ▼9.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.92 ▼1.48 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Paymob for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.45 | 1.66 ▼0.12 | 42.63 ▼3.03 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▲0.04 | 96.64 ▼3.27 | 46.28 ▲2.06 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.02 | 39.39 ▼1.04 | 35.78 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.27 ▲0.09 | 685.26 ▲95.14 | 51.38 ▼0.22 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.20 ▼0.08 | 94.23 ▲0.22 | 40.99 ▼0.63 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: gateway, paymob, woo, e-commerce, accept...
paymob-for-woocommerce/init_paymob.php 77% from 13 tests
The entry point to "Paymob for WooCommerce" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("paymob-for-woocommerce.php" instead of "init_paymob.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.0")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
No dangerous file extensions were detected1,043 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 118 | 84 | 768 |
PO File | 1 | 44 | 44 | 115 |
CSS | 2 | 4 | 9 | 82 |
JavaScript | 1 | 6 | 4 | 78 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.40 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 12 | 26.09% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/paymob.png | 2.72KB | 1.31KB | ▼ 52.08% |