Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.50ms] Passed 4 tests
An overview of server-side resources used by What If Bitcoin?
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.85 ▼0.68 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.82 ▼5.60 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.84 ▼0.24 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.22 ▼15.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.45 ▼3.84 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 20 new options
New WordPress options |
---|
whatif_made_love |
widget_recent-posts |
whatif_result_text_color |
widget_theysaidso_widget |
whatif_input_bg_color |
whatif_input_text_color |
whatif_bg_color |
widget_recent-comments |
whatif_text_color |
whatif_result_border_color |
... |
Browser metrics Passed 4 tests
What If Bitcoin?: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.79 ▼0.56 | 8.05 ▲6.49 | 38.95 ▼0.26 |
Dashboard /wp-admin | 2,207 ▲30 | 5.52 ▼0.18 | 89.76 ▲0.28 | 75.94 ▲31.57 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▲0.02 | 35.34 ▼2.82 | 35.82 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,692 ▲165 | 22.24 ▼0.89 | 677.46 ▼13.95 | 56.16 ▼4.54 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.23 ▲0.09 | 103.79 ▼29.52 | 72.40 ▲19.93 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/what-if-bitcoin/uninstall.php
- > /wp-content/plugins/what-if-bitcoin/what-if-bitcoin.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/what-if-bitcoin/functions/initial_front_func.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/what-if-bitcoin/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/what-if-bitcoin/functions/admin_function.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/what-if-bitcoin/functions/generate_form_result.php:14
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
what-if-bitcoin/what-if-bitcoin.php 85% from 13 tests
This is the main PHP file of "What If Bitcoin?" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
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
Success! There were no dangerous files found in this plugin851 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 50 | 37 | 569 |
JavaScript | 4 | 5 | 12 | 165 |
CSS | 2 | 2 | 1 | 117 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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 |
assets/images/logo.png | 2.94KB | 1.68KB | ▼ 42.96% |
assets/images/lcp-menu-icon.png | 3.53KB | 0.94KB | ▼ 73.45% |