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
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.79ms] Passed 4 tests
Analyzing server-side resources used by Sticky Posts - Switch
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 34.86 ▼6.79 |
Dashboard /wp-admin | 3.46 ▲0.16 | 46.16 ▲0.60 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 47.66 ▲4.49 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 85.78 ▼14.72 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.53 ▲1.76 |
Sticky Posts - Switch /wp-admin/options-general.php?page=sticky-posts-switch | 3.36 | 34.84 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
sticky_posts_switch_options |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sticky Posts - Switch
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.35 ▼0.00 | 1.62 ▼0.19 | 42.37 ▼2.02 |
Dashboard /wp-admin | 2,202 ▲31 | 5.65 ▲0.08 | 81.34 ▼3.45 | 38.32 ▼0.52 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.97 ▼0.04 | 35.34 ▼5.75 | 34.69 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,534 ▼3 | 23.02 ▲4.66 | 676.34 ▲58.66 | 58.01 ▼5.61 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.04 | 105.55 ▲7.98 | 44.98 ▲1.53 |
Sticky Posts - Switch /wp-admin/options-general.php?page=sticky-posts-switch | 1,045 | 2.34 | 57.88 | 28.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 on the user side
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
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== sticky-posts-switch ===
)
sticky-posts-switch/sticky-posts-switch.php Passed 13 tests
The entry point to "Sticky Posts - Switch" version 2.1.3 is a PHP file that has certain tags in its header comment area
98 characters long description:
This plugin adds a sticky post switch functionality to the admin list post/custom post type pages.
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
Everything looks great! No dangerous files found in this plugin919 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 187 | 277 | 732 |
JavaScript | 5 | 32 | 39 | 112 |
CSS | 2 | 6 | 10 | 75 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 78.50 |
▷ Minimum class complexity | 75.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.14% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin