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.05MB] [CPU: ▼4.60ms] Passed 4 tests
Analyzing server-side resources used by Bitcoin Price Ticker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 48.25 ▲4.09 |
Dashboard /wp-admin | 3.36 ▲0.06 | 54.85 ▼1.57 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.03 ▼2.94 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.11 ▼15.69 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.97 ▲1.81 |
Current Bitcoin Price /wp-admin/options-general.php?page=cbp-admin-dashboard | 3.25 | 33.73 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
cbp_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Bitcoin Price Ticker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲92 | 13.41 ▼1.09 | 9.46 ▲7.33 | 39.46 ▼5.08 |
Dashboard /wp-admin | 2,199 ▲28 | 5.72 ▲0.07 | 88.50 ▼17.15 | 38.64 ▼3.61 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.04 | 37.78 ▼1.99 | 34.26 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.48 ▲0.44 | 670.77 ▲27.29 | 54.55 ▲1.03 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▼0.04 | 94.93 ▼10.08 | 42.94 ▼5.86 |
Current Bitcoin Price /wp-admin/options-general.php?page=cbp-admin-dashboard | 921 | 2.02 | 25.62 | 33.86 |
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
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- cbp_options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- 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 | 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/current-bitcoin-price/includes/cbp_shortcodes.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/current-bitcoin-price/includes/cbp_admin_area.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/current-bitcoin-price/functions.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
current-bitcoin-price/current-bitcoin-price.php Passed 13 tests
The main PHP script in "Bitcoin Price Ticker" version 1.0.4 is automatically included on every request by WordPress
82 characters long description:
A simple plugin which helps you to see Current Price of Bitcoin using coindesk API
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
Good job! No executable or dangerous file extensions detected296 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 75 | 133 | 199 |
JavaScript | 3 | 21 | 4 | 72 |
CSS | 1 | 3 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin