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.06MB] [CPU: ▼0.27ms] Passed 4 tests
An overview of server-side resources used by WC First Data Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 43.00 ▲0.29 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.47 ▼0.39 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 54.02 ▲6.06 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.40 ▼7.04 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.54 ▲8.56 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WC First Data Payment Gateway: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.26 ▼1.39 | 2.27 ▲0.52 | 42.60 ▼2.88 |
Dashboard /wp-admin | 2,209 ▲24 | 4.88 ▼0.96 | 113.36 ▲5.02 | 41.77 ▲2.90 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.01 | 42.18 ▼5.27 | 35.38 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.53 ▲5.80 | 664.19 ▼0.37 | 54.29 ▲2.51 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.06 | 107.54 ▼1.10 | 45.73 ▲3.17 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-first-data-payment-gateway/wc-first-data-payment-gateway.php:12
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (First Data admin settings 1.), #2 (First Data admin settings 2.), #3 (Screenshot from checkout page)
wc-first-data-payment-gateway/wc-first-data-payment-gateway.php Passed 13 tests
The main PHP file in "WC First Data Payment Gateway" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
WC First Data Payment Gateway addon adds a payment option for customers to pay with their Credit Cards.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin361 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 123 | 63 | 361 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 33.33% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
4 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 32.13KB | 11.61KB | ▼ 63.86% |
screenshot-3.png | 34.19KB | 10.04KB | ▼ 70.63% |
images/first_data.png | 10.13KB | 2.63KB | ▼ 74.08% |
screenshot-1.png | 38.07KB | 15.34KB | ▼ 59.71% |