Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼11.75ms] Passed 4 tests
An overview of server-side resources used by Lonely Sticky
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.03 ▲3.57 |
Dashboard /wp-admin | 3.35 ▲0.01 | 52.62 ▼13.37 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 53.63 ▲8.00 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 84.06 ▼34.00 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.50 ▼3.19 |
Lonely Sticky /wp-admin/options-general.php?page=lonely-sticky | 3.24 | 38.58 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Lonely Sticky
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.37 ▲0.14 | 1.98 ▲0.14 | 42.56 ▲1.67 |
Dashboard /wp-admin | 2,203 ▲32 | 5.66 ▲0.05 | 97.74 ▲9.02 | 43.00 ▲2.64 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.97 ▼0.06 | 34.37 ▼3.48 | 34.59 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,533 ▲1 | 23.06 ▼0.06 | 680.19 ▼14.92 | 73.43 ▲17.72 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.24 ▲0.07 | 100.64 ▲5.15 | 44.34 ▲1.37 |
Lonely Sticky /wp-admin/options-general.php?page=lonely-sticky | 853 | 2.05 | 25.84 | 31.26 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lonely-sticky/config/install.php
- > /wp-content/plugins/lonely-sticky/lonely_sticky.php
- > /wp-content/plugins/lonely-sticky/config/config.php
- > /wp-content/plugins/lonely-sticky/config/helpers.php
- > /wp-content/plugins/lonely-sticky/settings/class-settings-page.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lonely-sticky/settings/templates/setting-field-checkbox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lonely-sticky/settings/templates/setting-field-select.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lonely-sticky/settings/templates/settings-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lonely-sticky/settings/templates/setting-field-text.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lonely-sticky/settings/templates/setting-field-textarea.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lonely-sticky/settings/templates/setting-field-number.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
- Plugin Name: You should set the name of your plugin on the first line (
=== lonely-sticky ===
)
lonely-sticky/lonely_sticky.php 92% from 13 tests
The principal PHP file in "Lonely Sticky" v. 1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lonely-sticky.php" instead of "lonely_sticky.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected357 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 101 | 160 | 343 |
CSS | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/made_by_logo.png | 4.24KB | 4.47KB | 0.00% |