Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.50ms] Passed 4 tests
Analyzing server-side resources used by Scheduled Unsticky
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.52 ▼1.71 |
Dashboard /wp-admin | 3.34 ▲0.04 | 57.78 ▲8.87 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 52.14 ▼3.28 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 96.47 ▼8.38 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.70 ▼8.63 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
scheduled_unsticky_days |
can_compress_scripts |
scheduled_unsticky_cron |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Scheduled Unsticky
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.30 ▼0.07 | 1.87 ▼0.24 | 41.55 ▼4.36 |
Dashboard /wp-admin | 2,195 ▲18 | 5.66 ▲0.02 | 87.78 ▼2.22 | 39.41 ▼4.18 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.06 | 33.71 ▼5.30 | 38.13 ▲1.74 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.12 ▼0.16 | 645.50 ▼15.36 | 60.98 ▼0.43 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.25 ▲0.04 | 95.10 ▼17.64 | 41.55 ▼4.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/scheduled-unsticky/scheduled-unsticky.php:43
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/scheduled-unsticky/class-wp-cli-commands.php:6
- > 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 97% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Settings dialog - english), #2 (WP_CLI output from 'wp help scheduled-unsticky')
scheduled-unsticky/scheduled-unsticky.php Passed 13 tests
"Scheduled Unsticky" version 0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Removes sticky flag after a adjustable period from posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin178 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 33 | 61 | 112 |
PO File | 2 | 14 | 24 | 66 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 9 | 90.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 165.41KB | 60.54KB | ▼ 63.40% |
screenshot-2.png | 29.83KB | 8.32KB | ▼ 72.12% |