Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/stick-post-widget/stick-post-widget.php+122
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.88ms] Passed 4 tests
This is a short check of server-side resources used by Stick Post Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.87 ▼33.74 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.50 ▼48.43 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.40 ▼42.72 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.84 ▼90.64 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.40 ▼29.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_stick_post |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Stick Post Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.17 | 1.75 ▲0.05 | 40.54 ▼6.10 |
Dashboard /wp-admin | 2,192 ▲15 | 5.49 ▼0.18 | 85.62 ▼7.58 | 38.46 ▼5.87 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.01 | 39.69 ▲0.76 | 35.90 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.10 ▲0.09 | 611.90 ▼46.55 | 65.07 ▲4.82 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.01 | 96.34 ▼10.46 | 43.15 ▼1.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/stick-post-widget/stick-post-widget.php+122
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_stick_post
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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× PHP files output text when accessed directly:
- > /wp-content/plugins/stick-post-widget/index.php
- 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/stick-post-widget/stick-post-widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: stick, stick post, stick recent post widget, sticky post, stick widget...
stick-post-widget/stick-post-widget.php Passed 13 tests
Analyzing the main PHP file in "Stick Post Widget" version 1.0
55 characters long description:
Stick Post Widget plugin.Display recent stick post show
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected86 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 7 | 46 | 86 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 6.19KB | 3.14KB | ▼ 49.34% |
screenshot-1.png | 5.36KB | 2.95KB | ▼ 45.05% |