Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼11.39ms] Passed 4 tests
Server-side resources used by WooCommerce payment plugin - Novalnet AG
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 38.41 ▼4.35 |
Dashboard /wp-admin | 3.55 ▲0.20 | 43.99 ▼17.16 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 46.26 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 74.10 ▼21.78 |
Media Library /wp-admin/upload.php | 3.49 ▲0.25 | 31.71 ▼2.25 |
Server storage [IO: ▲4.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce payment plugin - Novalnet AG
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲37 | 14.11 ▼0.08 | 1.68 ▼0.06 | 39.96 ▼3.52 |
Dashboard /wp-admin | 2,204 ▲23 | 5.65 ▼0.04 | 91.40 ▼7.54 | 41.81 ▲3.62 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.95 ▼0.05 | 39.77 ▲0.96 | 39.14 ▲3.44 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 22.85 ▼0.39 | 604.35 ▼29.27 | 49.84 ▲2.85 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.10 ▼0.12 | 98.08 ▼2.59 | 42.04 ▼0.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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Novalnet_Configuration' not found in wp-content/plugins/woocommerce-novalnet-gateway/includes/class-wc-novalnet-webhook.php:1142
- > PHP Fatal error
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 Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: novalnet payment, payments, credit cards, payment gateway
woocommerce-novalnet-gateway/novalnet-payment-gateway.php 85% from 13 tests
The main PHP file in "WooCommerce payment plugin - Novalnet AG" ver. 12.6.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.0.0")
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-novalnet-gateway.php" instead of "novalnet-payment-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected13,961 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 2,570 | 6,676 | 11,013 |
JavaScript | 29 | 177 | 204 | 2,525 |
CSS | 1 | 7 | 0 | 304 |
SVG | 2 | 0 | 2 | 119 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 29.39 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 324.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 1 | 1.56% |
▷ Concrete classes | 63 | 98.44% |
▷ Final classes | 24 | 38.10% |
Methods | 636 | |
▷ Static methods | 58 | 9.12% |
▷ Public methods | 636 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 44 | 97.78% |
▷ Anonymous functions | 1 | 2.22% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
33 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/novalnet_paypal.png | 1.93KB | 1.70KB | ▼ 11.94% |
assets/images/novalnet_online_bank_transfer.png | 5.28KB | 2.54KB | ▼ 51.93% |
assets/images/novalnet_multibanco.png | 2.05KB | 1.04KB | ▼ 49.29% |
assets/images/novalnet_invoice.png | 0.60KB | 0.77KB | 0.00% |
assets/images/novalnet_postfinance_card.png | 2.79KB | 1.85KB | ▼ 33.78% |