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.07MB] [CPU: ▼13.01ms] Passed 4 tests
Server-side resources used by Sports News Headlines Widget Box In Any Language
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.45 ▼4.48 |
Dashboard /wp-admin | 3.29 ▼0.01 | 34.61 ▼16.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.90 ▼10.75 |
Add New Post /wp-admin/post-new.php | 5.54 ▼0.35 | 77.13 ▼20.34 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.19 ▼4.42 |
Sports News /wp-admin/options-general.php?page=sports-news-plugin-menu | 3.27 | 31.08 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Sports_News_Options |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Sports News Headlines Widget Box In Any Language
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.82 ▼0.79 | 8.38 ▲6.51 | 45.81 ▼1.78 |
Dashboard /wp-admin | 2,243 ▲66 | 5.60 ▼0.07 | 89.76 ▼12.73 | 40.32 ▼3.77 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.03 ▲0.07 | 40.54 ▲3.21 | 34.72 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,570 ▲43 | 23.10 ▲0.00 | 638.04 ▼49.89 | 53.79 ▼11.47 |
Media Library /wp-admin/upload.php | 1,442 ▲48 | 4.23 ▲0.04 | 99.07 ▼7.02 | 43.12 ▲0.03 |
Sports News /wp-admin/options-general.php?page=sports-news-plugin-menu | 1,073 | 1.82 | 26.24 | 34.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- Sports_News_Options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=sports-news-plugin-menu
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method snwp_Main::show_admin_notice() should not be called statically
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sports-news/views/global-settings/page-header.php
- > /wp-content/plugins/sports-news/includes/admin-notice-helper/admin-notice-helper.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'snwp_Main' not found in wp-content/plugins/sports-news/views/global-settings/page-notice.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/sports-news/includes/admin-notice-helper/admin-notice.php:1
- > PHP Fatal error
Uncaught Error: Class 'snwp_Module' not found in wp-content/plugins/sports-news/classes/snwp-show.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sports-news/settings.php:2
- > PHP Notice
Undefined variable: setting_logo_path in wp-content/plugins/sports-news/views/global-settings/page-header.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'snwp_Module' not found in wp-content/plugins/sports-news/classes/snwp-main.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sports-news/sportsnews.php:11
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Sports News 300x250 in action.), #2 (Sports news 728x90 in action.), #3 (Sports News 220x150 in action.), #4 (Sports News 550x70 in action.)
- Tags: You are using too many tags: 53 tag instead of maximum 10
sports-news/sportsnews.php 85% from 13 tests
Analyzing the main PHP file in "Sports News Headlines Widget Box In Any Language" version 1.5
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sports-news.php" instead of "sportsnews.php")
- Description: The description should be shorter than 140 characters (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin849 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 196 | 167 | 780 |
CSS | 2 | 3 | 0 | 25 |
JavaScript | 1 | 6 | 2 | 25 |
Markdown | 1 | 7 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 10 | 40.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 4 | 16.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 37 | 97.37% |
▷ Anonymous functions | 1 | 2.63% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blank.png | 0.27KB | 0.10KB | ▼ 61.68% |