Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/news-bar/classes/gn-plugin-framework.class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; GN_Plugin_Framework has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼51.75ms] Passed 4 tests
An overview of server-side resources used by News Bar Plus
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 4.37 ▼38.14 |
Dashboard /wp-admin | 2.13 ▼1.18 | 7.45 ▼40.34 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.85 ▼40.44 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 7.51 ▼88.08 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 7.77 ▼22.57 |
News Bar /wp-admin/options-general.php?page=news-bar | 2.13 | 7.42 |
Add item /wp-admin/post-new.php?post_type=news-bar-plus | 2.13 | 5.75 |
News Bar /wp-admin/edit.php?post_type=news-bar-plus | 2.13 | 7.52 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 122 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
news_bar_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by News Bar Plus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,766 ▲31 | 13.64 ▼0.65 | 5.73 ▲3.63 | 37.63 ▼7.81 |
Dashboard /wp-admin | 2,239 ▲51 | 5.79 ▲0.91 | 110.95 ▲2.96 | 74.95 ▲27.98 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.02 ▲0.03 | 38.47 ▼2.90 | 36.07 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,702 ▲188 | 24.22 ▲6.67 | 653.98 ▲44.70 | 51.65 ▲0.48 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.21 ▲0.03 | 97.93 ▼5.19 | 70.66 ▲29.73 |
News Bar /wp-admin/options-general.php?page=news-bar | 2,154 | 1.95 | 80.36 | 33.54 |
Add item /wp-admin/post-new.php?post_type=news-bar-plus | 2,154 | 7.59 | 186.63 | 122.98 |
News Bar /wp-admin/edit.php?post_type=news-bar-plus | 1,086 | 1.96 | 32.53 | 31.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/news-bar/classes/gn-plugin-framework.class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; GN_Plugin_Framework has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- news_bar_options
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=news-bar-plus
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/news-bar/classes/gn-plugin-framework.class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; GN_Plugin_Framework has a deprecated constructor
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=news-bar-plus
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/news-bar/classes/gn-plugin-framework.class.php+214
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=news-bar
- > Notice in wp-content/plugins/news-bar/classes/gn-plugin-framework.class.php+316
Undefined index: reseted
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=news-bar
- > Notice in wp-content/plugins/news-bar/classes/gn-plugin-framework.class.php+334
Undefined index: saved
- 17 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=news-bar
- > Notice in wp-content/plugins/news-bar/includes/fields/select.php+3
Undefined index: triggable
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=news-bar
- > Notice in wp-content/plugins/news-bar/includes/fields/select.php+2
Undefined index: trigger
SRP 0% 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
Please take a closer look at the following
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/news-bar/includes/fields/opentab.php
- > /wp-content/plugins/news-bar/includes/fields/checkbox.php
- > /wp-content/plugins/news-bar/includes/fields/color.php
- > /wp-content/plugins/news-bar/includes/fields/hidden.php
- > /wp-content/plugins/news-bar/includes/fields/size.php
- > /wp-content/plugins/news-bar/includes/fields/number.php
- > /wp-content/plugins/news-bar/includes/fields/select.php
- > /wp-content/plugins/news-bar/includes/fields/title.php
- > /wp-content/plugins/news-bar/includes/fields/radio.php
- > /wp-content/plugins/news-bar/includes/fields/text.php
- 208× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/news-bar/includes/fields/select.php on line 3
- > PHP Notice
Undefined variable: settings in wp-content/plugins/news-bar/includes/fields/icon.php on line 6
- > PHP Notice
Undefined variable: option in wp-content/plugins/news-bar/includes/fields/radio.php on line 6
- > PHP Notice
Undefined variable: option in wp-content/plugins/news-bar/includes/fields/select.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/news-bar/includes/fields/social-icon.php on line 6
- > PHP Notice
Undefined variable: option in wp-content/plugins/news-bar/includes/fields/social-icon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/news-bar/includes/fields/radio.php on line 9
- > PHP Notice
Undefined variable: option in wp-content/plugins/news-bar/includes/fields/number.php on line 5
- > PHP Notice
Undefined variable: option in wp-content/plugins/news-bar/includes/fields/size.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/news-bar/includes/fields/number.php on line 4
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=news-bar
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,farbtastic,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).css(...).live is not a function" "TypeError: $(...).css(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/news-bar/assets/js/backend.js?ver=2.0.0:71:5)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,farbtastic,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,farbtastic,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=news-bar
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,farbtastic,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).css(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
news-bar/news-bar.php Passed 13 tests
"News Bar Plus" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
News bar with latest tweets or posts from specified blog category. Extended version.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,047 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 186 | 241 | 974 |
JavaScript | 7 | 203 | 354 | 964 |
CSS | 14 | 68 | 41 | 728 |
PO File | 1 | 148 | 181 | 285 |
HTML | 1 | 12 | 4 | 95 |
JSON | 1 | 0 | 0 | 1 |
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 | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
68 PNG files occupy 0.26MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/twitter-4.png | 0.40KB | 0.48KB | 0.00% |
assets/images/post-type.png | 0.46KB | 0.34KB | ▼ 25.53% |
assets/skins/images/wood.png | 26.79KB | 14.51KB | ▼ 45.85% |
assets/images/icons/wordpress.png | 0.82KB | 0.80KB | ▼ 1.91% |
documentation/css/img/warning.png | 0.59KB | 0.50KB | ▼ 14.99% |