Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▼0.85ms] Passed 4 tests
Server-side resources used by Tradecast
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 47.99 ▼0.30 |
Dashboard /wp-admin | 3.65 ▲0.35 | 53.56 ▲5.16 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 58.29 ▲7.84 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 96.32 ▼11.61 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 42.39 ▲3.36 |
Galleries /wp-admin/admin.php?page=tradecast-galleries | 3.48 | 39.90 |
Videos /wp-admin/admin.php?page=tradecast-videos | 3.48 | 35.19 |
Settings /wp-admin/admin.php?page=tradecast-settings | 3.48 | 37.22 |
Server storage [IO: ▲6.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
tradecast_cron |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tradecast
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 16.41 ▲1.85 | 45.69 ▲43.90 | 41.16 ▼2.99 |
Dashboard /wp-admin | 2,225 ▲45 | 6.00 ▲0.31 | 175.42 ▲84.77 | 53.16 ▲11.85 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 3.03 ▲0.98 | 49.57 ▲5.76 | 36.22 ▼1.23 |
Add New Post /wp-admin/post-new.php | 6,402 ▲4,848 | 29.50 ▲11.23 | 959.40 ▲323.30 | 38.41 ▼13.60 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 5.50 ▲1.30 | 114.94 ▲2.06 | 45.52 ▲2.18 |
Galleries /wp-admin/admin.php?page=tradecast-galleries | 898 | 3.07 | 42.40 | 34.17 |
Videos /wp-admin/admin.php?page=tradecast-videos | 894 | 3.02 | 39.43 | 30.69 |
Settings /wp-admin/admin.php?page=tradecast-settings | 837 | 2.89 | 40.56 | 28.42 |
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 were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- tradecast_cron
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tradecast-videos
- > Notice in wp-content/plugins/tradecast/admin/partials/tradecast-admin-videos.php+16
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tradecast/admin/partials/tradecast-admin-galleries.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tradecast/admin/partials/tradecast-admin-videos.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tradecast/admin/partials/tradecast-admin-settings.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=tradecast-galleries
- > Javascript (severe) in unknown
/wp-content/plugins/tradecast/admin/assets/tradecast-admin.umd.min.js?ver=1.0.1 30:94000 Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')
- > GET request to /wp-admin/admin.php?page=tradecast-videos
- > Javascript (severe) in unknown
/wp-content/plugins/tradecast/admin/assets/tradecast-admin.umd.min.js?ver=1.0.1 30:102007 Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')
- > GET request to /wp-admin/admin.php?page=tradecast-settings
- > Javascript (severe) in unknown
/wp-content/plugins/tradecast/admin/assets/tradecast-admin.umd.min.js?ver=1.0.1 30:97693 Uncaught TypeError: Cannot read properties of null (reading 'length')
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
tradecast/tradecast.php Passed 13 tests
The principal PHP file in "Tradecast" v. 1.0.1 is loaded by WordPress automatically on each request
72 characters long description:
Add Tradecast videos and galleries to your content using this wp-plugin.
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
Good job! No executable or dangerous file extensions detected121,609 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 18,472 | 43,604 | 120,293 |
PHP | 25 | 235 | 892 | 1,217 |
JSON | 2 | 0 | 0 | 40 |
SVG | 1 | 4 | 1 | 37 |
HTML | 2 | 6 | 0 | 14 |
CSS | 3 | 1 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 2 | 2.74% |
▷ Public methods | 56 | 76.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 23.29% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 42 | |
▷ Global constants | 3 | 7.14% |
▷ Class constants | 39 | 92.86% |
▷ Public constants | 19 | 48.72% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin