Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.75ms] Passed 4 tests
Server-side resources used by Alpha Insights - Intelligent Profit Reports For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.23 ▼4.08 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.85 ▲0.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.83 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.85 ▲1.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.89 ▼0.12 |
Server storage [IO: ▲9.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 586 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Alpha Insights - Intelligent Profit Reports For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.58 ▼0.04 | 1.59 ▼0.23 | 42.47 ▼4.27 |
Dashboard /wp-admin | 2,206 ▲29 | 5.62 ▼0.06 | 87.34 ▼3.89 | 39.30 ▲0.34 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.02 ▲0.00 | 39.80 ▲4.52 | 33.14 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 22.96 ▼0.13 | 639.55 ▲20.27 | 61.23 ▼5.89 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.23 ▲0.04 | 99.01 ▼4.00 | 46.98 ▲2.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 207× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/mpdf/mpdf/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/setasign/fpdi/src/PdfParser/Type/PdfNumeric.php:16
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/mpdf/mpdf/src/Tag/P.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/mpdf/mpdf/src/Tag/TocEntry.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/mpdf/mpdf/src/Tag/Dl.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/mpdf/mpdf/src/Barcode/Msi.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/mpdf/mpdf/src/Tag/Main.php:5
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/setasign/fpdi/src/Tcpdf/Fpdi.php:33
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/mpdf/mpdf/src/Tag/Bdi.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/alpha-insights-intelligent-profit-reports-for-woocommerce/includes/helpers/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php:8
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
alpha-insights-intelligent-profit-reports-for-woocommerce/wpd-alpha-insights-free.php 77% from 13 tests
The main file in "Alpha Insights - Intelligent Profit Reports For WooCommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("alpha-insights-intelligent-profit-reports-for-woocommerce.php" instead of "wpd-alpha-insights-free.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin89,810 lines of code in 426 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 398 | 13,312 | 14,527 | 82,150 |
CSS | 7 | 110 | 119 | 3,672 |
JavaScript | 7 | 729 | 262 | 3,124 |
JSON | 5 | 3 | 0 | 429 |
Markdown | 4 | 181 | 0 | 388 |
XML | 2 | 2 | 1 | 33 |
YAML | 1 | 1 | 1 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 7,009)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 60.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,009.00 |
Average method complexity | 13.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 43 | |
Interfaces | 10 | |
Traits | 6 | |
Classes | 286 | |
▷ Abstract classes | 9 | 3.15% |
▷ Concrete classes | 277 | 96.85% |
▷ Final classes | 13 | 4.69% |
Methods | 1,471 | |
▷ Static methods | 124 | 8.43% |
▷ Public methods | 1,291 | 87.76% |
▷ Protected methods | 54 | 3.67% |
▷ Private methods | 126 | 8.57% |
Functions | 133 | |
▷ Named functions | 111 | 83.46% |
▷ Anonymous functions | 22 | 16.54% |
Constants | 444 | |
▷ Global constants | 22 | 4.95% |
▷ Class constants | 422 | 95.05% |
▷ Public constants | 422 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/img/Alpha-Insights-Icon-20x20.png | 0.75KB | 0.92KB | 0.00% |
assets/css/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
assets/css/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
assets/img/Alpha-Insights-Icon-Large.png | 55.53KB | 21.80KB | ▼ 60.74% |