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.07MB] [CPU: ▼3.58ms] Passed 4 tests
Analyzing server-side resources used by Payment Gateway for PayWithSpecta
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.78 ▼3.81 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.78 ▼4.52 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.37 ▲0.83 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 93.63 ▼4.26 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.78 ▼1.72 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Payment Gateway for PayWithSpecta: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.54 ▼0.84 | 7.54 ▲5.67 | 42.05 ▼4.64 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▲0.01 | 102.33 ▼1.06 | 36.82 ▼7.54 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.01 ▼0.05 | 35.95 ▼0.35 | 33.00 ▲3.18 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 18.22 ▼5.01 | 637.94 ▼50.40 | 52.58 ▼2.35 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.22 ▲0.00 | 98.93 ▼7.72 | 44.80 ▼0.46 |
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
You still need to fix the following
- 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-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-paywithspecta-payment-gateway/public/partials/wc-paywithspecta-payment-gateway-public-display.php
- > /wp-content/plugins/wc-paywithspecta-payment-gateway/admin/partials/wc-paywithspecta-payment-gateway-admin-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-paywithspecta-payment-gateway/includes/class-wc-paywithspecta-payment-gateway.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-paywithspecta-payment-gateway/includes/functions-paywithspecta-woocommerce.php:127
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% 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 require attention:
- Screenshots: These screenshots do not have images: #1 (PayWithSpecta Payment Gateway Setting Page), #2 (PayWithSpecta Payment Gateway on the checkout page)
- Donate link: Please fix this invalid URI: ""
wc-paywithspecta-payment-gateway/wc-paywithspecta-payment-gateway.php 92% from 13 tests
The main file in "Payment Gateway for PayWithSpecta" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin411 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 166 | 617 | 405 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/main_logo.png | 24.66KB | 10.04KB | ▼ 59.30% |
assets/images/main_logo_medium.png | 18.77KB | 5.61KB | ▼ 70.11% |