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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.43ms] Passed 4 tests
Server-side resources used by AtaraPay WooCommerce Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.07 ▼4.52 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.42 ▼6.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.26 ▲2.88 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.04 ▼17.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.04 ▲5.25 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for AtaraPay WooCommerce Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.59 ▼0.64 | 4.28 ▲2.70 | 40.75 ▼0.20 |
Dashboard /wp-admin | 2,214 ▲26 | 5.83 ▼0.05 | 101.85 ▼8.99 | 40.50 ▲0.12 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.03 | 39.87 ▲5.94 | 37.49 ▲3.94 |
Add New Post /wp-admin/post-new.php | 1,543 ▲14 | 23.36 ▲4.89 | 657.83 ▲25.30 | 50.18 ▼6.36 |
Media Library /wp-admin/upload.php | 1,396 ▲17 | 4.22 ▲0.05 | 94.54 ▼5.76 | 40.35 ▼3.30 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== atarapay-woocommerce ===
)
atarapay-woocommerce/atarapay-woo.php 77% from 13 tests
Analyzing the main PHP file in "AtaraPay WooCommerce Payment Gateway" version 2.0.10
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("atarapay-woocommerce.php" instead of "atarapay-woo.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,369 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 777 | 237 | 2,267 |
JavaScript | 4 | 6 | 7 | 99 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 31.90 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 7 | 7.61% |
▷ Public methods | 91 | 98.91% |
▷ Protected methods | 1 | 1.09% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 18 | |
▷ Global constants | 11 | 61.11% |
▷ Class constants | 7 | 38.89% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 1.53KB | 0.96KB | ▼ 37.06% |
assets/images/atarapay.png | 7.41KB | 3.13KB | ▼ 57.75% |
assets/images/screenshot-1.png | 181.41KB | 52.44KB | ▼ 71.09% |