Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/news-in-stack-widget/news-in-stack-widget.php+450
Function create_function() is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼55.53ms] Passed 4 tests
An overview of server-side resources used by News In Stack Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 7.53 ▼33.86 |
Dashboard /wp-admin | 2.19 ▼1.11 | 5.60 ▼42.49 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 6.75 ▼39.72 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 6.14 ▼106.06 |
Media Library /wp-admin/upload.php | 2.19 ▼1.03 | 6.68 ▼25.85 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_news-in-stack-widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for News In Stack Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.05 | 2.01 ▲0.12 | 42.84 ▼1.35 |
Dashboard /wp-admin | 2,203 ▲12 | 5.80 ▼0.10 | 94.95 ▼6.21 | 38.29 ▼4.62 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.01 | 36.01 ▼0.12 | 32.33 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.30 ▲0.18 | 637.39 ▼32.10 | 59.85 ▲9.22 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▲0.02 | 97.01 ▼3.25 | 45.15 ▲1.04 |
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
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/news-in-stack-widget/news-in-stack-widget.php+450
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_news-in-stack-widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/news-in-stack-widget/news-in-stack-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Default stack view), #2 (Customized view), #3 (Minimazed view), #4 (The widget configuration dialog.)
news-in-stack-widget/news-in-stack-widget.php Passed 13 tests
The entry point to "News In Stack Widget" version 1.3.1 is a PHP file that has certain tags in its header comment area
95 characters long description:
Adds a widget that can display recent posts from multiple categories or from custom post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected424 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 155 | 77 | 424 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 7.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 66.00KB | 23.25KB | ▼ 64.77% |
screenshot-1.png | 49.75KB | 21.20KB | ▼ 57.38% |
screenshot-3.png | 11.59KB | 5.36KB | ▼ 53.79% |
screenshot-4.png | 26.57KB | 10.36KB | ▼ 61.02% |