Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▼4.11ms] Passed 4 tests
A check of server-side resources used by WP News and Scrolling Widgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 37.68 ▼3.82 |
Dashboard /wp-admin | 3.88 ▲0.53 | 51.25 ▼17.80 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 51.61 ▲0.99 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 104.11 ▲6.85 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 37.47 ▲4.19 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_sp_news_widget |
widget_recent-posts |
wpos_anylc_site_uid |
db_upgraded |
theysaidso_admin_options |
widget_sp_news_s_widget |
can_compress_scripts |
widget_theysaidso_widget |
widget_sp_news_sthumb_widget |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
WP News and Scrolling Widgets: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,544 ▼1,203 | 10.63 ▼4.08 | 1.52 ▼0.27 | 17.80 ▼27.52 |
Dashboard /wp-admin | 2,221 ▲41 | 5.64 ▲0.10 | 97.36 ▲11.64 | 53.19 ▲14.36 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 2.00 ▲0.06 | 39.92 ▼0.86 | 37.30 ▼5.62 |
Add New Post /wp-admin/post-new.php | 6,221 ▲4,686 | 18.95 ▼6.19 | 816.52 ▲163.75 | 58.47 ▼17.37 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.22 ▲0.04 | 96.78 ▼5.29 | 40.14 ▼3.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 11 options in the database
- theysaidso_admin_options
- wpos_anylc_site_uid
- widget_sp_news_widget
- wpos_anylc_redirect
- widget_sp_news_s_widget
- widget_sp_news_sthumb_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- ...
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)
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sp-news-and-widget/sp-news-and-widget.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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
Attributes that require attention:
- Screenshots: Please add an image for screenshot #7 (Widgets Options)
- Screenshots: Please describe screenshot #9 in sp-news-and-widget/assets to your readme.txt
- Tags: There are too many tags (17 tag instead of maximum 10)
sp-news-and-widget/sp-news-and-widget.php Passed 13 tests
"WP News and Scrolling Widgets" version 4.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
116 characters long description:
A simple News and three widgets(static, scrolling and with thumbs) plugin. Also work with Gutenberg shortcode block.
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
Good job! No executable or dangerous file extensions detected6,081 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 773 | 1,229 | 3,564 |
PO File | 4 | 808 | 952 | 1,845 |
JavaScript | 7 | 59 | 24 | 412 |
CSS | 5 | 27 | 11 | 258 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 19.82 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 2 | 18.18% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 54 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.90% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 0.52MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/popup-icon/popup-design.png | 7.53KB | 4.51KB | ▼ 40.14% |
assets/images/popup-icon/blog-list-view.png | 8.12KB | 2.78KB | ▼ 65.77% |
assets/images/popup-icon/blog-grid.png | 4.67KB | 2.53KB | ▼ 45.73% |
assets/images/popup-icon/grid-box.png | 11.39KB | 3.31KB | ▼ 70.95% |
assets/images/image-upgrade.png | 166.27KB | 48.08KB | ▼ 71.08% |