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
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/sm-sticky-featured-widget/sticky-featured-widget.php+12
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.72ms] Passed 4 tests
Server-side resources used by SM Sticky Featured Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.80 ▼36.15 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.77 ▼45.49 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.15 ▼39.40 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.20 ▼89.83 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.67 ▼26.53 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_wp_widget_smsticky |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
SM Sticky Featured Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.15 | 1.77 ▲0.16 | 38.37 ▼4.83 |
Dashboard /wp-admin | 2,206 ▲24 | 4.86 ▼0.99 | 108.66 ▲5.02 | 43.77 ▲3.56 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.05 | 40.84 ▼2.77 | 33.93 ▼3.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.20 ▼0.22 | 627.23 ▼27.57 | 54.28 ▲4.66 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.22 ▲0.01 | 95.01 ▼6.40 | 40.65 ▼5.35 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/sm-sticky-featured-widget/sticky-featured-widget.php+12
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_wp_widget_smsticky
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sm-sticky-featured-widget/sticky-featured-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (A sample of the widget when used on premium theme like ClassiPress.), #2 (A sample of the widget on the default Wordpress theme, TwentyTen.)
sm-sticky-featured-widget/sticky-featured-widget.php 92% from 13 tests
The principal PHP file in "SM Sticky Featured Widget" v. 1.2.6 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sm-sticky-featured-widget.php" instead of "sticky-featured-widget.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
Good job! No executable or dangerous file extensions detected136 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 35 | 136 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 11.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 36.75KB | 14.82KB | ▼ 59.69% |
screenshot-2.png | 17.30KB | 7.61KB | ▼ 56.01% |