Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/bknewsticker/ticker.php+432
Use of undefined constant News - assumed 'News' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.17MB] [CPU: ▼6.45ms] Passed 4 tests
Server-side resources used by Bknewsticker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 39.43 ▲2.61 |
Dashboard /wp-admin | 3.48 ▲0.13 | 50.36 ▼6.37 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 48.35 ▼0.60 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 80.42 ▼18.78 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.82 ▼0.04 |
BkNewsticker /wp-admin/options-general.php?page=tickeroptions | 3.38 | 36.96 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 30 new options
New WordPress options |
---|
ticker_user_specified_posts |
ticker_rss |
ticker_auto_excerpt_length |
ticker_color_link |
ticker_type |
tiker_content_title |
ticker_admin_messages_to_show_once |
ticker_color_title |
ticker_popular_days |
border_size_ticker |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Bknewsticker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲164 | 13.93 ▼0.43 | 12.36 ▲10.82 | 42.45 ▲1.69 |
Dashboard /wp-admin | 2,215 ▲47 | 5.82 ▲0.17 | 98.53 ▲13.42 | 42.75 ▼2.91 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.29 ▲0.27 | 33.82 ▼10.91 | 31.30 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.31 ▲0.07 | 637.74 ▼30.90 | 35.34 ▼18.21 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.40 ▲0.17 | 93.69 ▼19.76 | 46.38 ▼3.30 |
BkNewsticker /wp-admin/options-general.php?page=tickeroptions | 1,961 | 2.53 | 82.40 | 66.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 30 options in the database
- ticker_timeout
- db_upgraded
- ext_rss_num
- ticker_num_posts
- widget_theysaidso_widget
- bke_textall_size
- ticker_speed
- ticker_dates
- ticker_anim
- ticker_color_excerpt
- ...
Smoke tests 75% 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)
Everything seems fine, however this is by no means 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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bknewsticker/ticker-color.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bknewsticker/ticker.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 18 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Some examples.), #2 (The Setup Page.)
bknewsticker/ticker.php 92% from 13 tests
The principal PHP file in "Bknewsticker" v. 1.0.5 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bknewsticker.php" instead of "ticker.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
No dangerous file extensions were detected6,208 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 5 | 12 | 1,385 |
JavaScript | 2 | 123 | 121 | 1,302 |
Sass | 13 | 19 | 22 | 928 |
LESS | 12 | 18 | 27 | 907 |
PHP | 3 | 43 | 20 | 871 |
SVG | 1 | 0 | 0 | 414 |
PO File | 3 | 184 | 369 | 401 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 PNG files occupy 0.28MB with 0.20MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 112.71KB | 39.69KB | ▼ 64.79% |
screenshot-1.png | 177.57KB | 47.06KB | ▼ 73.50% |