Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/steem-wp/src/constants.php+12
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.50ms] Passed 4 tests
Server-side resources used by Steem WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.82 ▲1.77 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.18 ▲0.33 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.94 ▲2.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 100.55 ▲4.31 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 44.30 ▼2.58 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
steemwp_auth_group |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Steem WP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲72 | 13.22 ▼1.57 | 1.67 ▼1.02 | 47.41 ▲4.24 |
Dashboard /wp-admin | 2,252 ▲64 | 4.88 ▼0.99 | 107.28 ▼10.61 | 39.90 ▼4.00 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.01 ▲0.01 | 43.59 ▲6.77 | 35.91 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,549 ▼119 | 23.16 ▲0.62 | 663.18 ▼9.79 | 50.76 ▼14.63 |
Media Library /wp-admin/upload.php | 1,431 ▲46 | 4.23 ▲0.11 | 112.31 ▲5.53 | 48.46 ▲2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/steem-wp/src/ui/admin/php/partials/footer.php
- 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/steem-wp/src/ui/admin/php/auth.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/steem-wp/src/ui/admin/php/statistics.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/steem-wp/src/ui/admin/php/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/steem-wp/src/hooks/lifecycle/activate.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/steem-wp/src/ui/admin/php/wizard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/steem-wp/src/ui/admin/php/coming.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/steem-wp/src/ui/admin/php/support.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/steem-wp/src/hooks/lifecycle/uninstall.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/steem-wp/src/hooks/lifecycle/activate.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/steem-wp/src/lib/steemconnect/modules/login.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: blockchain, steemwp, steem
steem-wp/index.php 85% from 13 tests
The primary PHP file in "Steem WP" version 0.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("steem-wp.php" instead of "index.php")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,680 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 253 | 279 | 1,242 |
JavaScript | 10 | 172 | 46 | 695 |
PHP | 28 | 255 | 29 | 563 |
JSON | 9 | 0 | 0 | 180 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 31 | 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
PNG images were not found in this plugin