Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.93MB] [CPU: ▼29.82ms] Passed 4 tests
Analyzing server-side resources used by Manual Credit Card Processing for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.37 ▲0.25 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.63 ▼4.86 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.97 ▼5.42 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.64 ▼108.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.17 ▼0.18 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Manual Credit Card Processing for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.20 | 1.80 ▲0.02 | 38.37 ▼7.40 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.04 | 87.53 ▼14.21 | 40.81 ▼4.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 35.02 ▼3.51 | 34.37 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.21 ▼0.04 | 661.60 ▼32.43 | 49.68 ▼17.47 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.12 ▼0.19 | 99.81 ▼20.16 | 44.54 ▼5.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/manual-credit-card-processing-for-woocommerce/assets/styles.php
- > /wp-content/plugins/manual-credit-card-processing-for-woocommerce/moco-woocommerce-manual-cc-processing.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: manual, credit card, orders, phone, offline...
manual-credit-card-processing-for-woocommerce/moco-woocommerce-manual-cc-processing.php 85% from 13 tests
Analyzing the main PHP file in "Manual Credit Card Processing for WooCommerce" version 1.6.1
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 293 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("manual-credit-card-processing-for-woocommerce.php" instead of "moco-woocommerce-manual-cc-processing.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
There were no executable files found in this plugin1,213 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 121 | 186 | 798 |
JavaScript | 1 | 37 | 7 | 415 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 30 | |
▷ Static methods | 12 | 40.00% |
▷ Public methods | 26 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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