Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/real-sticky/real-sticky.php+62
Methods with the same name as their class will not be constructors in a future version of PHP; real_sticky has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼54.12ms] Passed 4 tests
This is a short check of server-side resources used by Real Sticky
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.93 ▼36.37 |
Dashboard /wp-admin | 2.08 ▼1.22 | 7.51 ▼46.29 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.79 ▼47.00 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 7.79 ▼86.80 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.20 ▼32.91 |
Real Sticky Options /wp-admin/options-general.php?page=real-sticky/options.php | 2.08 | 5.65 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Real Sticky
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.70 ▲0.35 | 2.08 ▲0.30 | 42.17 ▼2.95 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.09 | 87.74 ▼5.08 | 37.86 ▼4.49 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.01 | 35.50 ▼2.61 | 34.93 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.25 ▲5.11 | 695.75 ▲76.31 | 50.83 ▼19.86 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.18 ▼0.07 | 97.83 ▼4.61 | 41.52 ▼0.29 |
Real Sticky Options /wp-admin/options-general.php?page=real-sticky/options.php | 835 | 1.99 | 22.96 | 27.88 |
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
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/real-sticky/real-sticky.php+62
Methods with the same name as their class will not be constructors in a future version of PHP; real_sticky has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=real-sticky/options.php
- > Deprecated in wp-content/plugins/real-sticky/real-sticky.php+62
Methods with the same name as their class will not be constructors in a future version of PHP; real_sticky has a deprecated constructor
SRP 50% 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 items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-sticky/real-sticky.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/real-sticky/options.php:3
- > 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Page Title.), #2 (Options.)
real-sticky/real-sticky.php Passed 13 tests
The entry point to "Real Sticky" version 1.3.1 is a PHP file that has certain tags in its header comment area
41 characters long description:
This plugin adds custom Real Sticky Post.
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
Success! There were no dangerous files found in this plugin147 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 30 | 77 |
PO File | 2 | 15 | 24 | 70 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 7.81KB | 4.69KB | ▼ 39.95% |
screenshot-1.png | 30.67KB | 15.36KB | ▼ 49.91% |