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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.42ms] Passed 4 tests
This is a short check of server-side resources used by FLEX Gold
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.61 ▼6.57 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.63 ▼8.59 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.56 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 94.71 ▼3.55 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.85 ▲4.31 |
Server storage [IO: ▲1.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 11 new options
New WordPress options |
---|
dg_capital_plugin_SHORT_NAME |
db_upgraded |
widget_recent-comments |
dg_capital_plugin_WHAT_IS_URL |
dg_capital_plugin_TERMS_URL |
widget_recent-posts |
dg_capital_plugin_METHOD_TITLE |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
A check of browser resources used by FLEX Gold
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.22 ▼1.15 | 4.73 ▲2.63 | 40.35 ▼5.30 |
Dashboard /wp-admin | 2,207 ▲19 | 5.79 ▼0.10 | 120.03 ▲14.28 | 41.98 ▲4.03 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.06 ▲0.03 | 40.15 ▲4.56 | 37.93 ▲5.39 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 23.37 ▲0.09 | 667.95 ▼6.52 | 61.22 ▲2.96 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.22 ▼0.02 | 96.94 ▼0.17 | 41.27 ▼2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 11 options in the database
- can_compress_scripts
- dg_capital_plugin_ID
- dg_capital_plugin_TERMS_URL
- dg_capital_plugin_WHAT_IS_URL
- theysaidso_admin_options
- widget_recent-comments
- dg_capital_plugin_SHORT_NAME
- dg_capital_plugin_METHOD_TITLE
- db_upgraded
- widget_theysaidso_widget
- ...
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/flex-gold-for-woocommerce/assets/partials/plugin-name-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/flex-gold-for-woocommerce/includes/class-wc-dg-capital-gateway.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: dg gold group, woocommerce, gold, flex gold, payment
flex-gold-for-woocommerce/dg-capital-plugin-for-woocommerce.php 92% from 13 tests
The main PHP file in "FLEX Gold" ver. 2.7.10 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("flex-gold-for-woocommerce.php" instead of "dg-capital-plugin-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,107 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 2 | 3 | 3,921 |
PHP | 11 | 213 | 763 | 968 |
CSS | 2 | 25 | 0 | 115 |
JavaScript | 3 | 12 | 0 | 103 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 23.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 39 | 70.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 29.09% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 13 | |
▷ Global constants | 11 | 84.62% |
▷ Class constants | 2 | 15.38% |
▷ Public constants | 2 | 100.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
8 PNG files occupy 0.51MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pmc_gold.png | 7.82KB | 3.24KB | ▼ 58.63% |
assets/images/screenshot-1.png | 46.18KB | 19.27KB | ▼ 58.28% |
assets/images/banner-772x250.png | 73.11KB | 24.32KB | ▼ 66.73% |
assets/images/screenshot-2.png | 44.73KB | 16.70KB | ▼ 62.66% |
assets/images/cards.png | 28.49KB | 11.29KB | ▼ 60.39% |