Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.89ms] Passed 4 tests
Server-side resources used by Payvalida Payment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.36 ▼1.14 |
Dashboard /wp-admin | 3.39 ▲0.05 | 43.25 ▼12.64 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 41.81 ▼3.40 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 88.82 ▼14.37 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 33.30 ▲1.58 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Payvalida Payment
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.74 ▲0.39 | 1.81 ▲0.18 | 44.16 ▲1.03 |
Dashboard /wp-admin | 2,198 ▲17 | 5.57 ▼0.15 | 82.12 ▼15.16 | 43.70 ▼1.44 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.01 | 35.99 ▼2.49 | 33.61 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.03 ▼5.14 | 593.02 ▼70.92 | 62.90 ▼9.93 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.16 ▲0.00 | 94.45 ▼4.56 | 40.23 ▼5.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-payvalida-gateway/payvalida-authorize-woocommerce-gateway.php:693
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #4 in woo-payvalida-gateway/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
woo-payvalida-gateway/payvalida-authorize-woocommerce-gateway.php 92% from 13 tests
The main file in "Payvalida Payment" v. 3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-payvalida-gateway.php" instead of "payvalida-authorize-woocommerce-gateway.php")
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 plugin562 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 85 | 562 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 33.17KB | 12.12KB | ▼ 63.46% |
assets/screenshot-3.png | 33.17KB | 12.12KB | ▼ 63.46% |
assets/payvalida.png | 7.76KB | 4.28KB | ▼ 44.90% |
assets/screenshot-4.png | 33.17KB | 12.12KB | ▼ 63.46% |
assets/payvalida_logo.png | 7.76KB | 4.28KB | ▼ 44.90% |