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.02MB] [CPU: ▼3.04ms] Passed 4 tests
Server-side resources used by Zen Sticky Social
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.57 ▼3.44 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.18 ▼2.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.91 ▼3.30 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 92.49 ▼2.81 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.47 ▲2.07 |
Zen StickySocial /wp-admin/options-general.php?page=zen-social-sticky/zen-sticky-social.php | 3.19 | 33.09 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
zen_ss_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Zen Sticky Social
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.17 ▼0.18 | 1.90 ▲0.07 | 45.09 ▼0.84 |
Dashboard /wp-admin | 2,196 ▲22 | 5.65 ▲0.14 | 107.69 ▲5.26 | 46.20 ▼0.99 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 39.06 ▼4.37 | 32.96 ▼7.51 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.18 ▲4.84 | 636.92 ▼24.96 | 50.96 ▼8.57 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.07 | 101.47 ▼0.64 | 42.28 ▼5.41 |
Zen StickySocial /wp-admin/options-general.php?page=zen-social-sticky/zen-sticky-social.php | 815 | 2.03 | 24.41 | 27.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=zen-social-sticky/zen-sticky-social.php
- > Notice in wp-content/plugins/zen-social-sticky/zen-sticky-social.php+35
Undefined variable: option
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=zen-social-sticky/zen-sticky-social.php
- > Notice in wp-content/plugins/zen-social-sticky/zen-sticky-social.php+35
Trying to access array offset on value of type null
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 server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-social-sticky/zen-sticky-social.php:14
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Requires at least: Version not formatted correctly
zen-social-sticky/zen-sticky-social.php 92% from 13 tests
The primary PHP file in "Zen Sticky Social" version 0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("zen-social-sticky.php" instead of "zen-sticky-social.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected73 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 8 | 72 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
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 |
img/sprite.png | 2.17KB | 1.54KB | ▼ 28.83% |