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.04MB] [CPU: ▼3.15ms] Passed 4 tests
Server-side resources used by Category Sticky Post
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 48.55 ▼4.92 |
Dashboard /wp-admin | 3.35 ▲0.04 | 57.73 ▼6.68 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 54.27 ▼6.55 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 121.54 ▲20.34 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 47.20 ▲5.56 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Category Sticky Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 13.99 ▼0.36 | 1.90 ▲0.08 | 54.60 ▲0.68 |
Dashboard /wp-admin | 2,201 ▲36 | 5.59 ▼0.01 | 112.43 ▼0.57 | 45.92 ▼6.34 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.01 ▼0.00 | 45.69 ▼0.49 | 39.12 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 18.31 ▼4.54 | 843.41 ▲86.58 | 73.74 ▲2.41 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.25 ▲0.11 | 133.91 ▲10.10 | 60.81 ▲8.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
2 plugin tags: categories, post
category-sticky-post/category-sticky-post.php Passed 13 tests
"Category Sticky Post" version 2.10.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
115 characters long description:
Mark a post to be placed at the top of a specified category archive. It's sticky posts specifically for categories.
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
There were no executable files found in this plugin282 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 95 | 202 | 160 |
PO File | 3 | 12 | 12 | 72 |
JavaScript | 4 | 16 | 8 | 30 |
LESS | 2 | 9 | 10 | 17 |
CSS | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 9 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 40.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin