Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼2.11ms] Passed 4 tests
This is a short check of server-side resources used by WP TradingView
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 39.73 ▼9.17 |
Dashboard /wp-admin | 3.80 ▲0.46 | 51.84 ▼8.66 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 52.64 ▲4.24 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 100.75 ▲5.16 |
Media Library /wp-admin/upload.php | 3.73 ▲0.49 | 45.88 ▲12.96 |
Server storage [IO: ▲0.14MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP TradingView
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.61 ▼1.03 | 2.20 ▲0.40 | 37.97 ▼5.63 |
Dashboard /wp-admin | 2,260 ▲75 | 5.10 ▼0.71 | 102.38 ▲2.58 | 100.26 ▲61.38 |
Posts /wp-admin/edit.php | 2,145 ▲59 | 2.49 ▲0.47 | 40.45 ▲6.17 | 40.15 ▲6.38 |
Add New Post /wp-admin/post-new.php | 1,723 ▲201 | 24.61 ▲1.47 | 642.58 ▼9.71 | 37.28 ▼13.38 |
Media Library /wp-admin/upload.php | 1,433 ▲42 | 4.38 ▲0.15 | 99.49 ▲5.00 | 88.18 ▲45.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-tradingview/inc/class_chat.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-tradingview/inc/class_ideaview.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-tradingview/inc/class_chart.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-tradingview/inc/admin_page.php:1187
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-tradingview/inc/class_profile.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-tradingview/inc/class_ideastream.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-tradingview/inc/admin_page.php:1187
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: You are using too many tags: 29 tag instead of maximum 10
wp-tradingview/tradingview.php 92% from 13 tests
Analyzing the main PHP file in "WP TradingView" version 1.7
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-tradingview.php" instead of "tradingview.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
Everything looks great! No dangerous files found in this plugin2,777 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 1,436 | 139 | 2,760 |
JavaScript | 1 | 8 | 1 | 17 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 78.80 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 20.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 5 | 25.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 27 | 84.38% |
▷ Anonymous functions | 5 | 15.62% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.73KB | 0.90KB | 0.00% |
images/icon-org.png | 8.79KB | 5.01KB | ▼ 42.97% |