Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/credova-financial/credova-financial.php+125
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.00MB] [CPU: ▼47.75ms] Passed 4 tests
This is a short check of server-side resources used by Credova Financial
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▼0.48 | 8.44 ▼28.97 |
Dashboard /wp-admin | 3.00 ▼0.30 | 12.18 ▼37.70 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 12.69 ▼37.68 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 10.31 ▼86.64 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 10.86 ▼22.76 |
Credova Orders /wp-admin/admin.php?page=credova | 3.00 | 11.72 |
Add new /wp-admin/admin.php?page=credova_form | 3.00 | 15.48 |
Server storage [IO: ▲0.27MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_credova_checkout |
wp_cart_credova_info |
wp_credova_logs |
wp_credova_info |
New WordPress options |
---|
credova_db_version |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Credova Financial
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲37 | 14.70 ▼0.01 | 1.62 ▼0.08 | 39.11 ▼2.30 |
Dashboard /wp-admin | 2,207 ▲30 | 5.61 ▲0.01 | 91.75 ▼7.82 | 39.33 ▼3.57 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 2.00 ▲0.04 | 40.31 ▲2.25 | 36.40 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.69 ▲0.49 | 656.66 ▼47.23 | 64.83 ▲13.99 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.16 ▼0.04 | 109.75 ▲12.40 | 40.23 ▼3.46 |
Credova Orders /wp-admin/admin.php?page=credova | 978 | 2.04 | 27.27 | 27.00 |
Add new /wp-admin/admin.php?page=credova_form | 833 | 2.07 | 26.46 | 27.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/credova-financial/credova-financial.php+125
Trying to access array offset on value of type bool
- The uninstall procedure failed, leaving 3 tables in the database
- wp_cart_credova_info
- wp_credova_logs
- wp_credova_checkout
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 22 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=credova_form
- > Notice in wp-content/plugins/credova-financial/credova-financial.php+135
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/credova-financial/includes/credova-admin.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/credova-financial/includes/credova-admin.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/credova-financial/includes/credova-admin.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Requires php: Invalid version format
- Screenshots: Please add images for these screenshots: #1 (Credova Admin Settings.), #2 (Credova Admin Order Section.), #3 (Frontend Show Payment options on Product page), #4 (Once user click then they can see the payment approval screen.), #5 (Checkout page and Credova Options.)
credova-financial/credova-financial.php 92% from 13 tests
This is the main PHP file of "Credova Financial" version 2.2.0, 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:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.2.1" instead of "5.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,165 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 600 | 671 | 3,978 |
JavaScript | 4 | 1 | 2 | 108 |
CSS | 1 | 6 | 0 | 77 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 77.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 212.00 |
Average method complexity | 7.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 7 | 9.72% |
▷ Public methods | 71 | 98.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.39% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/credova-logo.png | 7.01KB | 3.20KB | ▼ 54.35% |