Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.96ms] Passed 4 tests
An overview of server-side resources used by Custom News Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 46.89 ▲2.76 |
Dashboard /wp-admin | 3.40 ▲0.10 | 56.95 ▲1.63 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.60 ▲3.64 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.09 | 89.60 ▼11.89 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 41.09 ▲4.29 |
Add New /wp-admin/post-new.php?post_type=news | 3.48 | 59.83 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=news | 3.32 | 44.69 |
All News /wp-admin/edit.php?post_type=news | 3.36 | 46.41 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=news | 3.32 | 44.74 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_news_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
category_children |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom News Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.32 ▼0.24 | 1.72 ▲0.10 | 43.11 ▲3.34 |
Dashboard /wp-admin | 2,230 ▲53 | 5.58 ▲0.04 | 85.55 ▼7.83 | 41.95 ▼3.43 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.02 ▲0.08 | 35.50 ▼3.34 | 37.45 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.41 ▲0.03 | 675.51 ▲44.25 | 55.14 ▲1.06 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.27 ▲0.11 | 101.79 ▲1.54 | 41.36 ▼3.42 |
Add New /wp-admin/post-new.php?post_type=news | 2,717 | 7.90 | 177.33 | 65.65 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=news | 1,357 | 2.12 | 26.59 | 31.16 |
All News /wp-admin/edit.php?post_type=news | 1,196 | 1.96 | 36.42 | 34.17 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=news | 1,487 | 2.12 | 28.07 | 35.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_news_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- category_children
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-news-widget/includes/class-cnw-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-news-widget/includes/class-cnw-cpt.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: wordpress news plugin, news website, news widget, news, news plugin
custom-news-widget/custom-news-widget.php Passed 13 tests
The principal PHP file in "Custom News Widget" v. 1.0 is loaded by WordPress automatically on each request
32 characters long description:
News Widget Plugin for WordPress
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 plugin137 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 24 | 64 | 137 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.PNG | 57.73KB | 28.27KB | ▼ 51.03% |
screenshot-1.PNG | 35.45KB | 18.81KB | ▼ 46.92% |