Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.73ms] Passed 4 tests
A check of server-side resources used by RexPay Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 40.30 ▼3.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.32 ▼3.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.36 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.56 ▼0.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.37 ▲1.35 |
Server storage [IO: ▲2.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
RexPay Payment Gateway: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.15 | 1.63 ▼0.12 | 40.00 ▼8.34 |
Dashboard /wp-admin | 2,206 ▲15 | 4.88 ▼0.01 | 107.93 ▼4.36 | 40.00 ▼4.10 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.98 ▼0.02 | 39.89 ▲5.68 | 36.46 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.47 ▲5.81 | 583.42 ▼114.93 | 50.01 ▼5.49 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.24 ▲0.03 | 95.67 ▼3.11 | 43.73 ▼2.36 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant REX_WC_DIR_PATH - assumed 'REX_WC_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rexpay-payment-gateway/includes/eventHandler.php on line 2
- > PHP Warning
require(REX_WC_DIR_PATHrex-pay-api/rexpayEventHandlerInterface.php): failed to open stream: No such file or directory in wp-content/plugins/rexpay-payment-gateway/includes/eventHandler.php on line 2
- > PHP Fatal error
require(): Failed opening required 'REX_WC_DIR_PATHrex-pay-api/rexpayEventHandlerInterface.php' (include_path='.:/usr/share/php') in wp-content/plugins/rexpay-payment-gateway/includes/eventHandler.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: rexpay woocommerce, payments
rexpay-payment-gateway/woo-rexpay.php 77% from 13 tests
This is the main PHP file of "RexPay Payment Gateway" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- 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: It is recommended to name the main PHP file as the plugin slug ("rexpay-payment-gateway.php" instead of "woo-rexpay.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0.0")
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
Success! There were no dangerous files found in this plugin1,003 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 280 | 196 | 790 |
CSS | 1 | 0 | 0 | 84 |
Markdown | 1 | 31 | 0 | 69 |
JavaScript | 1 | 25 | 18 | 36 |
SVG | 3 | 0 | 0 | 24 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 98.36% |
▷ Protected methods | 1 | 1.64% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 1.83MB with 1.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.PNG | 10.22KB | 5.93KB | ▼ 42.01% |
assets/img/screen4.png | 375.10KB | 148.96KB | ▼ 60.29% |
assets/Banner-1544x500.png.png | 62.05KB | 20.99KB | ▼ 66.18% |
assets/img/screen1.png | 283.08KB | 87.15KB | ▼ 69.21% |
assets/img/logos.png | 13.64KB | 5.93KB | ▼ 56.55% |