Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.86ms] Passed 4 tests
An overview of server-side resources used by B2i Investor Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.21 ▼5.85 |
Dashboard /wp-admin | 3.45 ▲0.11 | 51.32 ▼9.61 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 42.02 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.70 ▼8.91 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.46 ▼0.19 |
B2i Options /wp-admin/options-general.php?page=b2i_options | 3.75 | 46.31 |
Server storage [IO: ▲5.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 383 new files
Database: no new tables, 8 new options
New WordPress options |
---|
b2i_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
b2i_activation_message |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for B2i Investor Tools
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲138 | 13.47 ▼1.09 | 8.03 ▲6.39 | 43.63 ▼0.17 |
Dashboard /wp-admin | 2,204 ▲27 | 5.59 ▲0.01 | 96.20 ▼7.74 | 43.00 ▲0.40 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▼0.04 | 33.37 ▼0.85 | 34.09 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.24 ▲0.05 | 655.93 ▲26.40 | 61.03 ▲9.46 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.24 ▲0.05 | 100.14 ▲2.48 | 43.48 ▼1.16 |
B2i Options /wp-admin/options-general.php?page=b2i_options | 4,197 | 2.13 | 29.06 | 42.03 |
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
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- b2i_options
- db_upgraded
- b2i_activation_message
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/b2i-investor-tools/partials/instructions.php
- 41× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: dividends, sec, emailalerts, pressreleases, news...
b2i-investor-tools/b2i.php 77% from 13 tests
The main PHP file in "B2i Investor Tools" ver. 1.0.7.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("b2i-investor-tools.php" instead of "b2i.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin57,095 lines of code in 224 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 62 | 3,000 | 7,222 | 12,748 |
JavaScript | 13 | 982 | 1,158 | 5,272 |
CSS | 14 | 272 | 1,217 | 4,927 |
Sass | 13 | 238 | 25 | 1,149 |
Markdown | 2 | 219 | 0 | 676 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 27.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 555.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 9 | 12.68% |
▷ Concrete classes | 62 | 87.32% |
▷ Final classes | 1 | 1.61% |
Methods | 616 | |
▷ Static methods | 92 | 14.94% |
▷ Public methods | 521 | 84.58% |
▷ Protected methods | 92 | 14.94% |
▷ Private methods | 3 | 0.49% |
Functions | 47 | |
▷ Named functions | 45 | 95.74% |
▷ Anonymous functions | 2 | 4.26% |
Constants | 10 | |
▷ Global constants | 3 | 30.00% |
▷ Class constants | 7 | 70.00% |
▷ Public constants | 7 | 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
22 PNG files occupy 1.00MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 142.76KB | 40.22KB | ▼ 71.83% |
vendor/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
assets/icon-256x256.png | 10.88KB | 5.05KB | ▼ 53.59% |