Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.02ms] Passed 4 tests
Server-side resources used by WP NMI Gateway PCI for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 34.87 ▼6.57 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.62 ▼1.75 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.61 ▲0.71 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 78.04 ▼16.45 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.78 ▲0.98 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP NMI Gateway PCI for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.18 ▼0.53 | 1.69 ▲0.02 | 37.46 ▼9.15 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.06 | 93.40 ▼7.47 | 45.73 ▲5.01 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.97 ▼0.10 | 39.98 ▲0.57 | 37.51 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.66 ▲0.59 | 598.89 ▼111.05 | 49.66 ▼8.79 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.26 ▲0.00 | 97.55 ▲0.59 | 44.66 ▲3.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: pci, recurring payments, tokenization, pci-dss, woocommerce subscriptions...
wp-nmi-gateway-pci-woocommerce/gateway.php 69% from 13 tests
The main PHP script in "WP NMI Gateway PCI for WooCommerce" version 1.1.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 202 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-nmi-gateway-pci-woocommerce.php" instead of "gateway.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "3.3")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,185 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 235 | 247 | 961 |
JavaScript | 1 | 44 | 28 | 224 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 6 | 13.04% |
▷ Public methods | 43 | 93.48% |
▷ Protected methods | 2 | 4.35% |
▷ Private methods | 1 | 2.17% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin