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.02MB] [CPU: ▼9.01ms] Passed 4 tests
Analyzing server-side resources used by Novatum Payment Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.75 ▼10.61 |
Dashboard /wp-admin | 3.33 ▼0.01 | 51.83 ▼10.48 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.86 ▼3.12 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.65 ▼11.81 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.76 ▲5.69 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Novatum Payment Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲24 | 13.30 ▼1.10 | 4.26 ▲2.28 | 43.34 ▲3.29 |
Dashboard /wp-admin | 2,197 ▲20 | 5.65 ▲0.02 | 93.30 ▼4.05 | 38.57 ▼3.86 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.08 ▲0.05 | 39.97 ▼0.93 | 36.41 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.33 ▼4.62 | 646.05 ▼21.65 | 69.36 ▲4.98 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.23 ▲0.04 | 98.66 ▼16.65 | 39.10 ▼8.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/novatum-payment-gateway-for-woocommerce/novatum-gateway.php:16
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/novatum-payment-gateway-for-woocommerce/credit-card/class-novatum-payment-gateway-cc.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Requires php: Version not formatted correctly
novatum-payment-gateway-for-woocommerce/novatum-gateway.php 77% from 13 tests
The main PHP file in "Novatum Payment Gateway for WooCommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "4.9")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("novatum-payment-gateway-for-woocommerce.php" instead of "novatum-gateway.php")
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
Everything looks great! No dangerous files found in this plugin1,170 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 169 | 337 | 1,052 |
JavaScript | 2 | 17 | 0 | 89 |
CSS | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 1 | 4.17% |
▷ Private methods | 1 | 4.17% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin