Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.95ms] Passed 4 tests
An overview of server-side resources used by SM Sticky Clicky Star
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.21 ▼3.01 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.01 ▼20.87 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.85 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.18 ▼9.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.48 ▲3.05 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
SM Sticky Clicky Star: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▼0.27 | 1.70 ▲0.01 | 41.49 ▼2.73 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲0.02 | 107.25 ▲2.76 | 39.72 ▼4.52 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.04 ▲0.00 | 40.93 ▲3.03 | 35.83 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.50 ▼5.61 | 680.43 ▼4.40 | 56.95 ▼1.46 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.07 | 96.05 ▼4.26 | 43.80 ▼1.44 |
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
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WPAZ_Plugin_Base\\V_2_6\\Abstract_Plugin' not found in wp-content/plugins/sm-sticky-clicky-star/app/class-plugin.php:17
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: page, admin, plugin, ajax, sticky...
sm-sticky-clicky-star/sm-sticky-clicky-star.php Passed 13 tests
The main PHP file in "SM Sticky Clicky Star" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
107 characters long description:
Turn sticky (featured) posts on and off with 1 easy click! Control permissions with “User Role Editor”.
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
No dangerous file extensions were detected835 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 107 | 410 | 316 |
Markdown | 5 | 66 | 0 | 194 |
YAML | 2 | 4 | 0 | 126 |
JSON | 6 | 0 | 0 | 122 |
JavaScript | 1 | 4 | 10 | 40 |
XML | 2 | 0 | 0 | 30 |
CSS | 1 | 3 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 12 | 35.29% |
▷ Public methods | 27 | 79.41% |
▷ Protected methods | 3 | 8.82% |
▷ Private methods | 4 | 11.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/star.png | 3.32KB | 2.21KB | ▼ 33.28% |