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.04MB] [CPU: ▼8.98ms] Passed 4 tests
This is a short check of server-side resources used by Gateway Paygol Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.85 ▲0.69 |
Dashboard /wp-admin | 3.35 ▲0.00 | 49.13 ▼15.87 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.18 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.58 ▼17.98 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.02 ▼1.35 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Gateway Paygol Integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.06 ▼0.32 | 2.09 ▲0.25 | 44.48 ▼1.04 |
Dashboard /wp-admin | 2,213 ▲33 | 5.55 ▼0.12 | 85.00 ▼5.07 | 77.84 ▲32.18 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.99 ▼0.03 | 34.72 ▼2.38 | 33.70 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.20 ▼0.12 | 724.99 ▲26.33 | 56.93 ▼0.29 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.11 ▼0.03 | 105.45 ▼14.54 | 70.73 ▲23.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-paygol/pg_integration_gateway_class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (25 tag instead of maximum 10)
wc-paygol/pg_integration_main_class.php 77% from 13 tests
This is the main PHP file of "Gateway Paygol Integration" version 1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-paygol.php" instead of "pg_integration_main_class.php")
- Description: The description should be shorter than 140 characters (currently 512 characters long)
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected413 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 58 | 62 | 216 |
PHP | 3 | 15 | 38 | 197 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/WooCommerce-Einstellungen.png | 12.83KB | 6.59KB | ▼ 48.62% |
images/icon.png | 0.53KB | 0.54KB | 0.00% |
images/paygol_en_white.png | 5.10KB | 2.92KB | ▼ 42.77% |
images/Customization-Page.png | 77.09KB | 26.36KB | ▼ 65.80% |
images/paygol.png | 10.51KB | 3.62KB | ▼ 65.55% |