Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.09MB] [CPU: ▼10.44ms] Passed 4 tests
Analyzing server-side resources used by Sticky
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.95 ▲0.78 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.57 ▼4.04 |
Posts /wp-admin/edit.php | 3.26 ▼0.09 | 34.03 ▼13.98 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.38 | 64.10 ▼23.87 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.00 ▲0.14 |
Sticky /wp-admin/options-general.php?page=cvmh-sticky | 3.27 | 43.64 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_cvmh_sticky_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sticky
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.17 ▼0.06 | 1.98 ▲0.25 | 44.41 ▲0.47 |
Dashboard /wp-admin | 2,203 ▲26 | 5.63 ▼0.05 | 94.08 ▼4.65 | 41.01 ▼1.20 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.02 ▲0.02 | 36.05 ▲2.14 | 33.47 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.23 ▲0.20 | 637.67 ▼50.89 | 53.50 ▲1.00 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.23 ▲0.03 | 101.10 ▼13.04 | 44.51 ▼3.28 |
Sticky /wp-admin/options-general.php?page=cvmh-sticky | 819 | 1.77 | 27.09 | 24.57 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_cvmh_sticky_widget
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=cvmh-sticky
- > Notice in wp-content/plugins/sticky/includes/settings.php+9
Undefined index: action
- > GET request to /wp-admin/options-general.php?page=cvmh-sticky
- > Notice in wp-content/plugins/sticky/includes/settings.php+58
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=cvmh-sticky
- > Warning in wp-content/plugins/sticky/includes/settings.php+58
in_array() expects parameter 2 to be array, null given
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: sticky, pages, widget
sticky/sticky.php Passed 13 tests
This is the main PHP file of "Sticky" version 2.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
Adds sticky support for pages and/or custom posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected699 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 91 | 74 | 458 |
PO File | 1 | 44 | 95 | 107 |
CSS | 2 | 17 | 3 | 89 |
JavaScript | 2 | 12 | 7 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
There are no PNG files in this plugin