Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.26ms] Passed 4 tests
A check of server-side resources used by Bitcoin News
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 35.54 ▼0.51 |
Dashboard /wp-admin | 3.44 ▲0.14 | 49.53 ▲1.92 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 48.17 ▲3.18 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 94.09 ▼2.76 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.98 ▲0.32 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_tbcnews_plugin_widget |
tbcnews_plugin_version |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
tbcnews_plugin_version_taken |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Bitcoin News: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.19 ▼1.13 | 2.08 ▲0.42 | 39.04 ▼5.25 |
Dashboard /wp-admin | 2,220 ▲35 | 4.86 ▼0.99 | 100.92 ▼0.82 | 41.03 ▼2.87 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.03 ▲0.04 | 39.31 ▲0.38 | 34.52 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.22 ▲4.93 | 635.92 ▲18.66 | 51.83 ▼2.72 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.22 ▼0.01 | 99.21 ▲2.28 | 41.18 ▼2.58 |
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
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_tbcnews_plugin_widget
- widget_recent-comments
- tbcnews_plugin_version
- tbcnews_plugin_version_taken
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bitcoinnews/tbcnews-plugin-utils.php
- > /wp-content/plugins/bitcoinnews/tbcnews-plugin-widget.php
- > /wp-content/plugins/bitcoinnews/tbcnews-plugin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (18 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #1 (First of all, activate the Bitcoin News Plugin.), #2 (Then you can create your Bitcoin News by generating the shortcode. Choose the name, number of headlines, keywords and other settings.), #3 (Copy your shortcode and paste it into a page or a post.), #5 (If you want your Bitcoin News to appear in sidebar, it's easier to use the Bitcoin News widget.), #6 (An example of a Bitcoin News feed on a page.)
bitcoinnews/tbcnews-plugin.php 85% from 13 tests
The primary PHP file in "Bitcoin News" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bitcoinnews.php" instead of "tbcnews-plugin.php")
- Description: Keep the plugin description shorter than 140 characters (currently 267 characters long)
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
No dangerous file extensions were detected760 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 119 | 143 | 745 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 23 | 65.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 34.29% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG images were found in this plugin