Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/acquired-payments-gateway-for-woocommerce/acquired-payment.php+62
include_once(wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.02MB] [CPU: ▼299.55ms] Passed 4 tests
A check of server-side resources used by Acquired Payments Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 55.63 ▲1.66 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.33 ▼0.95 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.71 ▼5.73 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 91.79 ▼1,189.71 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 23.80 ▼1.81 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Acquired Payments Gateway for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.89 ▲0.25 | 6.41 ▼0.29 | 2.77 ▼0.15 |
Dashboard /wp-admin | 2,895 ▲34 | 6.19 ▲0.04 | 118.64 ▼18.78 | 153.47 ▼10.70 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▲0.01 | 61.94 ▼0.04 | 140.86 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,689 ▲28 | 19.31 ▲3.31 | 389.86 ▼34.31 | 152.99 ▼5.57 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.51 ▼0.01 | 142.39 ▲7.01 | 184.84 ▲2.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: gateway, payments, acquired payment, acquired, payment gateway...
acquired-payments-gateway-for-woocommerce/acquired-payment.php 69% from 13 tests
Analyzing the main PHP file in "Acquired Payments Gateway for WooCommerce" version 1.0.1
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.7.2" instead of "5.4")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acquired-payments-gateway-for-woocommerce.php" instead of "acquired-payment.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
There were no executable files found in this plugin7,516 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 594 | 1,593 | 5,519 |
JavaScript | 6 | 298 | 513 | 1,854 |
SVG | 5 | 7 | 1 | 104 |
CSS | 1 | 6 | 0 | 39 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 78.12 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 5.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 142 | 97.93% |
▷ Protected methods | 3 | 2.07% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected