Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.21MB] [CPU: ▼16.28ms] Passed 4 tests
This is a short check of server-side resources used by Sticky Anything
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.46 ▼2.65 |
Dashboard /wp-admin | 3.08 ▼0.22 | 28.04 ▼22.53 |
Posts /wp-admin/edit.php | 3.22 ▼0.13 | 31.76 ▼14.65 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.42 | 71.14 ▼19.74 |
Media Library /wp-admin/upload.php | 3.15 ▼0.07 | 30.23 ▼8.21 |
Sticky Anything /wp-admin/options-general.php?page=toast_sticky_anything | 3.20 | 30.86 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Sticky Anything
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.25 ▼1.13 | 2.04 ▲0.26 | 40.03 ▼6.92 |
Dashboard /wp-admin | 2,207 ▲25 | 5.81 ▲0.93 | 97.18 ▼13.94 | 40.74 ▼1.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.01 | 40.42 ▲4.22 | 35.40 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.03 ▼5.19 | 669.14 ▼31.26 | 63.56 ▲9.34 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.21 ▲0.06 | 108.37 ▲0.51 | 47.10 ▼2.29 |
Sticky Anything /wp-admin/options-general.php?page=toast_sticky_anything | 996 | 2.04 | 25.55 | 38.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 22 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=toast_sticky_anything
- > Notice in wp-content/plugins/toast-stick-anything/backend/backend.php+52
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=toast_sticky_anything
- > Warning in wp-content/plugins/toast-stick-anything/backend/backend.php+79
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toast-stick-anything/backend/backend.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toast-stick-anything/frontend/frontend-script.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toast-stick-anything/frontend/frontend-script.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toast-stick-anything/backend/functions.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please a description for screenshot #1 in toast-stick-anything/assets to your readme.txt
toast-stick-anything/toaststickyitems.php 92% from 13 tests
The main PHP file in "Sticky Anything" ver. 2.1.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("toast-stick-anything.php" instead of "toaststickyitems.php")
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
No dangerous file extensions were detected260 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 26 | 11 | 170 |
JavaScript | 1 | 13 | 2 | 63 |
CSS | 1 | 2 | 0 | 27 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected