Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/top-coin/includes/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; BHK_plugin_widget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼57.66ms] Passed 4 tests
This is a short check of server-side resources used by Top Coin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.22 ▼40.26 |
Dashboard /wp-admin | 2.09 ▼1.25 | 5.95 ▼62.80 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.82 ▼43.20 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.60 ▼84.38 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 7.83 ▼24.75 |
Top Coin /wp-admin/options-general.php?page=top-coin | 2.09 | 5.80 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_bhk_plugin_widget |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Top Coin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.34 ▼0.01 | 1.70 ▼0.23 | 42.88 ▼0.87 |
Dashboard /wp-admin | 2,196 ▲19 | 5.52 ▼0.05 | 83.48 ▼16.81 | 38.39 ▼4.53 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.04 | 39.02 ▲2.07 | 38.98 ▲2.55 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.36 ▲0.31 | 669.86 ▼21.09 | 62.32 ▲2.11 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▲0.00 | 108.38 ▲2.14 | 47.32 ▲3.58 |
Top Coin /wp-admin/options-general.php?page=top-coin | 846 | 1.98 | 22.09 | 58.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/top-coin/includes/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; BHK_plugin_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_bhk_plugin_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=top-coin
- > Deprecated in wp-content/plugins/top-coin/includes/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; BHK_plugin_widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=top-coin
- > Deprecated in wp-content/plugins/top-coin/includes/widget.php+67
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=top-coin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in BHK_plugin_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=top-coin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/options-general.php?page=top-coin
- > Warning in wp-content/plugins/top-coin/includes/shortcode.php+5
file_get_contents(https://api.coinmarketcap.com/v1/ticker/?limit=10): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/top-coin/bitcoin-plugin.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/top-coin/includes/shortcode.php:34
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/top-coin/includes/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: top coin, bitcoin plugin, currency rankings
top-coin/bitcoin-plugin.php 92% from 13 tests
The main PHP file in "Top Coin" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("top-coin.php" instead of "bitcoin-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin199 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 5 | 8 | 155 |
CSS | 1 | 2 | 0 | 44 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin