Benchmarks
Plugin footprint 65% 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.19MB] [CPU: ▼3.18ms] Passed 4 tests
Analyzing server-side resources used by pl8app custom bep20 token widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 45.31 ▲1.81 |
Dashboard /wp-admin | 3.49 ▲0.18 | 51.39 ▲5.39 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 52.41 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 85.39 ▼21.24 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 44.55 ▲7.80 |
All Contract Addresses /wp-admin/edit.php?post_type=contract_address | 3.45 | 38.47 |
Settings /wp-admin/edit.php?post_type=contract_address&page=wtwmain_settings | 3.38 | 36.29 |
Add New /wp-admin/post-new.php?post_type=contract_address | 3.46 | 49.17 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
pl8app custom bep20 token widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 13.52 ▼0.45 | 8.68 ▲6.08 | 41.68 ▼3.13 |
Dashboard /wp-admin | 2,237 ▲57 | 5.52 ▼0.10 | 90.39 ▲2.01 | 73.49 ▲27.48 |
Posts /wp-admin/edit.php | 2,217 ▲117 | 2.00 ▲0.00 | 33.39 ▼5.71 | 33.64 ▼4.70 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 22.95 ▼0.65 | 679.02 ▼0.82 | 153.77 ▲90.17 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.11 ▼0.13 | 109.68 ▲3.51 | 78.48 ▲35.42 |
All Contract Addresses /wp-admin/edit.php?post_type=contract_address | 1,100 | 1.93 | 30.66 | 27.96 |
Settings /wp-admin/edit.php?post_type=contract_address&page=wtwmain_settings | 860 | 2.00 | 24.42 | 31.04 |
Add New /wp-admin/post-new.php?post_type=contract_address | 1,775 | 3.57 | 61.16 | 81.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'plugin_uninstall' not found or invalid function name
- 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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/pl8app-custom-bep20-token-widget/modules/scripts.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/pl8app-custom-bep20-token-widget/modules/meta_box.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/pl8app-custom-bep20-token-widget/wp-token-widget.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pl8app-custom-bep20-token-widget/modules/cpt.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pl8app-custom-bep20-token-widget/modules/shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/pl8app-custom-bep20-token-widget/modules/settings.php:156
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pl8app-custom-bep20-token-widget/modules/ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pl8app-custom-bep20-token-widget/modules/hooks.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: cryptocurrency price, crypto, custom bep20 token, cryptocurrency, cryptocurrency price widget...
pl8app-custom-bep20-token-widget/wp-token-widget.php 92% from 13 tests
The entry point to "pl8app custom bep20 token widget" version 1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("pl8app-custom-bep20-token-widget.php" instead of "wp-token-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin9,184 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 5 | 7 | 8,200 |
PHP | 10 | 282 | 53 | 934 |
JavaScript | 1 | 21 | 1 | 50 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 17.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 5.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/inc/assets/css/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
modules/inc/assets/css/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
modules/images/logo.png | 3.50KB | 1.31KB | ▼ 62.51% |