Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.35ms] Passed 4 tests
A check of server-side resources used by Breaking News Ticker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.07 ▼0.35 |
Dashboard /wp-admin | 3.48 ▲0.18 | 54.41 ▲1.53 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 51.03 ▲1.21 |
Add New Post /wp-admin/post-new.php | 5.54 ▼0.34 | 78.51 ▼19.07 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.97 ▲0.83 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_bnt_widget |
bnt_basics |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
bnt_styles |
widget_theysaidso_widget |
bnt_ticker |
Browser metrics Passed 4 tests
Checking browser requirements for Breaking News Ticker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,478 ▲717 | 15.20 ▲0.85 | 5.74 ▲3.95 | 41.49 ▼1.50 |
Dashboard /wp-admin | 2,785 ▲611 | 6.36 ▲0.78 | 118.64 ▲13.88 | 40.95 ▼3.59 |
Posts /wp-admin/edit.php | 2,719 ▲622 | 3.51 ▲1.50 | 50.97 ▲14.29 | 32.62 ▼5.82 |
Add New Post /wp-admin/post-new.php | 2,132 ▲606 | 22.36 ▼0.66 | 567.74 ▼65.46 | 34.41 ▼9.47 |
Media Library /wp-admin/upload.php | 1,853 ▲450 | 4.28 ▲0.04 | 85.29 ▼18.05 | 45.05 ▼1.12 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/breaking-news-ticker/inc/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/breaking-news-ticker/inc/functions.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function bnt_get_option() in wp-content/plugins/breaking-news-ticker/inc/style-css.php:4
- > PHP Fatal error
Uncaught Error: Class 'AmityThemes_Settings_API' not found in wp-content/plugins/breaking-news-ticker/admin/amity-settings-api.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
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #0, #0 in breaking-news-ticker/assets to your readme.txt
- Tags: There are too many tags (21 tag instead of maximum 10)
breaking-news-ticker/breaking-news-ticker.php 92% from 13 tests
The main PHP script in "Breaking News Ticker" version 2.4.4 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 detected2,244 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 411 | 387 | 1,443 |
CSS | 3 | 90 | 14 | 432 |
JavaScript | 3 | 68 | 49 | 225 |
PO File | 1 | 62 | 64 | 144 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 25.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 1 | 2.33% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.65% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/up.png | 1.15KB | 0.49KB | ▼ 57.85% |
assets/images/controls.png | 2.08KB | 1.38KB | ▼ 33.36% |
assets/images/down.png | 1.17KB | 0.48KB | ▼ 58.92% |