Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.61ms] Passed 4 tests
This is a short check of server-side resources used by Simple Share Sticky
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.65 ▲2.80 |
Dashboard /wp-admin | 3.34 ▼0.00 | 55.17 ▼5.72 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.74 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.50 ▼4.91 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.53 ▲0.55 |
Share Sticky /wp-admin/options-general.php?page=simple-share-sticky/simple-share-sticky.php | 3.23 | 33.36 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Share Sticky
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 14.72 ▲0.45 | 5.37 ▲3.82 | 39.24 ▼6.18 |
Dashboard /wp-admin | 2,203 ▲22 | 5.62 ▼0.03 | 83.43 ▼15.82 | 41.10 ▲2.64 |
Posts /wp-admin/edit.php | 2,105 ▲8 | 2.01 ▲0.06 | 37.21 ▲1.11 | 31.61 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,524 ▼2 | 18.72 ▼4.30 | 428.90 ▼183.76 | 53.27 ▲1.46 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.09 ▼0.10 | 96.39 ▼8.50 | 45.07 ▲0.77 |
Share Sticky /wp-admin/options-general.php?page=simple-share-sticky/simple-share-sticky.php | 847 | 2.02 | 26.48 | 39.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-share-sticky/simple-share-sticky.php:137
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: social sharing, simple share sticky, simple sticky share, simple sharing, social media...
simple-share-sticky/simple-share-sticky.php Passed 13 tests
Analyzing the main PHP file in "Simple Share Sticky" version 0.0.1
81 characters long description:
A simpler way to share your wordpress pages / posts / and custom post type posts.
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
Everything looks great! No dangerous files found in this plugin216 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 19 | 1 | 102 |
PHP | 1 | 27 | 10 | 102 |
JavaScript | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.70 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
36 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/._Yelp.png | 4.00KB | 0.00KB | ▼ 100.00% |
assets/images/Deviantart.png | 0.86KB | 0.45KB | ▼ 47.72% |
assets/images/Behance.png | 1.31KB | 0.64KB | ▼ 51.45% |
assets/images/Linkedin.png | 1.00KB | 0.49KB | ▼ 51.08% |
assets/images/Google+.png | 1.39KB | 0.58KB | ▼ 57.86% |