Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-news-slider-widgets/includes/gen-nsw-init.php+44
Function create_function() is deprecated
Server metrics [RAM: ▼1.73MB] [CPU: ▼52.93ms] Passed 4 tests
Analyzing server-side resources used by WP News Slider Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.20 | 6.10 ▼32.57 |
Dashboard /wp-admin | 2.28 ▼1.02 | 5.55 ▼45.88 |
Posts /wp-admin/edit.php | 2.28 ▼1.08 | 7.21 ▼41.69 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.61 | 8.89 ▼91.57 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 7.10 ▼30.67 |
Pro Version /wp-admin/admin.php?page=pro-version | 2.28 | 6.54 |
News /wp-admin/admin.php?page=wp-news-slider-widgets/includes/gen-nsw-init.php | 2.28 | 7.06 |
Add News /wp-admin/admin.php?page=add-news | 2.28 | 7.54 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_gen_news_slider_widgets |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
widget_gen_nsw_widget |
Browser metrics Passed 4 tests
WP News Slider Widgets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 13.83 ▼0.47 | 5.68 ▲3.96 | 41.92 ▼1.19 |
Dashboard /wp-admin | 2,231 ▲46 | 5.14 ▼0.68 | 100.40 ▼7.42 | 78.32 ▲37.89 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.31 ▲0.28 | 40.49 ▲2.80 | 34.68 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 18.44 ▲0.93 | 633.42 ▲37.01 | 43.09 ▼17.90 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.31 ▲0.11 | 103.23 ▲1.36 | 71.12 ▲27.47 |
Pro Version /wp-admin/admin.php?page=pro-version | 899 | 1.89 | 28.23 | 31.77 |
News /wp-admin/admin.php?page=wp-news-slider-widgets/includes/gen-nsw-init.php | 838 | 1.86 | 27.99 | 28.90 |
Add News /wp-admin/admin.php?page=add-news | 1,570 | 6.81 | 134.00 | 130.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_gen_news_slider_widgets
- Zombie WordPress options were found after uninstall: 7 options
- widget_gen_nsw_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-news
- > request to
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-news
- > request to
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-news
- > request to
- > Deprecated in wp-content/plugins/wp-news-slider-widgets/includes/gen-nsw-init.php+44
Function create_function() is deprecated
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-news
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-news
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=add-news
- > request to
- > User notice in wp-includes/functions.php+5905
Function is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-news
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-news-slider-widgets/includes/gen-news-slider-pro-version.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
- Tags: Please delete some tags, you are using 30 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (news slider admin settings), #2 (admin-add news), #3 (widget sample 1), #4 (widget sample 2)
wp-news-slider-widgets/gen-wp-news-slider-widgets.php 92% from 13 tests
The main PHP file in "WP News Slider Widgets" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-news-slider-widgets.php" instead of "gen-wp-news-slider-widgets.php")
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
Everything looks great! No dangerous files found in this plugin810 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 67 | 18 | 678 |
CSS | 4 | 7 | 21 | 97 |
JavaScript | 2 | 4 | 25 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 8.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.30MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tick_active.png | 4.30KB | 1.51KB | ▼ 64.87% |
images/edit.png | 3.70KB | 1.29KB | ▼ 65.30% |
images/bg_blue.png | 1.12KB | 1.62KB | 0.00% |
screenshot-3.png | 124.36KB | 35.23KB | ▼ 71.67% |
images/tick_inactive.png | 4.15KB | 1.36KB | ▼ 67.18% |