Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/investment-decision-helper/investment-decision.php+515
Function create_function() is deprecated
Server metrics [RAM: ▼1.67MB] [CPU: ▼54.45ms] Passed 4 tests
Analyzing server-side resources used by Investment Decision Helper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.33 ▼1.14 | 5.73 ▼43.54 |
Dashboard /wp-admin | 2.35 ▼0.96 | 6.12 ▼39.88 |
Posts /wp-admin/edit.php | 2.35 ▼1.01 | 7.74 ▼41.26 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.54 | 6.72 ▼93.11 |
Media Library /wp-admin/upload.php | 2.35 ▼0.89 | 7.37 ▼27.86 |
Server storage [IO: ▲6.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 85 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_idh_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Investment Decision Helper
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.31 ▼1.08 | 1.65 ▼0.12 | 39.89 ▲2.33 |
Dashboard /wp-admin | 2,209 ▲21 | 5.91 ▲0.01 | 108.80 ▼10.74 | 41.81 ▼4.29 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 1.99 ▼0.04 | 38.81 ▼5.53 | 36.14 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.37 ▲5.10 | 633.04 ▼35.38 | 59.72 ▲8.86 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▼0.01 | 97.14 ▼3.39 | 43.55 ▼0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/investment-decision-helper/investment-decision.php+515
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_idh_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/investment-decision-helper/jpgraph/src/jpgraph.php
- > /wp-content/plugins/investment-decision-helper/grafica-comparacion.php
- 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Theme' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/themes/AquaTheme.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ticks' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/jpgraph_radar.php:18
- > PHP Fatal error
Uncaught Error: Class 'ImgData' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/imgdata_stars.inc.php:12
- > PHP Fatal error
Uncaught Error: Class 'Plot' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/jpgraph_error.php:17
- > PHP Fatal error
Uncaught Error: Class 'Theme' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/themes/PastelTheme.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'LinearScale' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/jpgraph_log.php:19
- > PHP Fatal error
Uncaught Error: Class 'Theme' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/themes/OrangeTheme.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'Plot' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/jpgraph_line.php:24
- > PHP Fatal error
Uncaught Error: Class 'Theme' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/themes/RoseTheme.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/investment-decision-helper/jpgraph/src/jpgraph_gantt.php:330
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 16 tag instead of maximum 10
investment-decision-helper/investment-decision.php 92% from 13 tests
The primary PHP file in "Investment Decision Helper" version 1.1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("investment-decision-helper.php" instead of "investment-decision.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected29,031 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 63 | 4,651 | 5,432 | 28,861 |
PO File | 2 | 66 | 76 | 163 |
CSS | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 28.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 478.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 143 | |
▷ Abstract classes | 1 | 0.70% |
▷ Concrete classes | 142 | 99.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,399 | |
▷ Static methods | 37 | 2.64% |
▷ Public methods | 1,399 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 354 | |
▷ Global constants | 354 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin