Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.08ms] Passed 4 tests
Server-side resources used by FavePay for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.91 ▼6.07 |
Dashboard /wp-admin | 3.40 ▲0.09 | 52.02 ▼0.56 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.68 ▼12.87 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.79 ▼4.82 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.64 ▲0.73 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
favepay_wc_unique_site_id |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FavePay for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.54 ▼0.95 | 10.62 ▲8.75 | 78.62 ▲31.54 |
Dashboard /wp-admin | 2,210 ▲33 | 5.62 ▼0.09 | 91.39 ▼5.69 | 41.77 ▲2.14 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.97 ▲0.03 | 38.06 ▼3.85 | 42.65 ▲5.86 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.58 ▲2.58 | 660.84 ▼48.93 | 64.65 ▲17.55 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.18 ▼0.00 | 100.43 ▼5.47 | 43.51 ▼2.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- favepay_wc_unique_site_id
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: payment, favepay, woocommerce
favepay-for-woocommerce/favepay-wc.php 92% from 13 tests
The main PHP file in "FavePay for WooCommerce" ver. 1.0.11 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("favepay-for-woocommerce.php" instead of "favepay-wc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected973 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 372 | 141 | 924 |
SVG | 1 | 0 | 1 | 48 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 8 | 15.38% |
▷ Public methods | 33 | 63.46% |
▷ Protected methods | 4 | 7.69% |
▷ Private methods | 15 | 28.85% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.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
PNG images were not found in this plugin