Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.38ms] Passed 4 tests
A check of server-side resources used by Stock Charts by Public.com
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.38 ▲0.36 |
Dashboard /wp-admin | 3.42 ▲0.08 | 46.63 ▼12.40 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 46.19 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 98.43 ▲8.55 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 33.90 ▼0.30 |
Stock Charts by Public.com /wp-admin/options-general.php?page=options-stock-charts-public | 3.32 | 30.21 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Stock Charts by Public.com: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲18 | 14.36 ▼0.16 | 1.93 ▲0.23 | 38.05 ▼2.16 |
Dashboard /wp-admin | 2,206 ▲26 | 5.54 ▼0.14 | 81.98 ▼8.29 | 38.60 ▼4.25 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.00 ▼0.00 | 38.54 ▲3.86 | 33.98 ▲1.74 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 18.65 ▼4.35 | 605.26 ▼70.84 | 71.77 ▲14.39 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.24 ▼0.07 | 95.37 ▼5.71 | 41.69 ▼2.12 |
Stock Charts by Public.com /wp-admin/options-general.php?page=options-stock-charts-public | 801 | 2.03 | 24.61 | 26.00 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: stock trading, stocks, stock market, stock charts
stock-charts-by-public-com/index.php 77% from 13 tests
The primary PHP file in "Stock Charts by Public.com" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 256 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stock-charts-by-public-com.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin442 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 213 | 468 | 419 |
JSON | 1 | 0 | 0 | 10 |
SVG | 5 | 0 | 0 | 5 |
CSS | 3 | 0 | 0 | 4 |
JavaScript | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.51% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin