Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼150.60ms] Passed 4 tests
This is a short check of server-side resources used by Open Social Share
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 24.39 ▼1.36 |
Dashboard /wp-admin | 3.10 ▲0.04 | 31.21 ▼6.18 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 31.35 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 71.38 ▼595.15 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 22.86 ▲0.68 |
Activation /wp-admin/admin.php?page=social9 | 3.08 | 20.57 |
Social Sharing /wp-admin/admin.php?page=social9_share | 3.21 | 22.39 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Open Social Share
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,754 ▲152 | 17.21 ▲1.57 | 9.94 ▲4.77 | 124.14 ▲50.84 |
Dashboard /wp-admin | 2,983 ▲91 | 7.31 ▲1.18 | 121.25 ▼11.39 | 188.46 ▲15.14 |
Posts /wp-admin/edit.php | 2,757 ▲14 | 3.53 ▲0.31 | 73.29 ▲10.30 | 138.55 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,654 ▼2,044 | 23.41 ▲5.13 | 320.19 ▼102.70 | 161.88 ▼0.61 |
Media Library /wp-admin/upload.php | 1,785 ▲30 | 6.49 ▲0.99 | 130.68 ▼17.63 | 203.45 ▲18.46 |
Activation /wp-admin/admin.php?page=social9 | 1,288 | 3.01 | 61.99 | 121.64 |
Social Sharing /wp-admin/admin.php?page=social9_share | 2,054 | 4.85 | 78.98 | 118.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: There are too many tags (27 tag instead of maximum 10)
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in simplified-social-share/assets to your readme.txt
simplified-social-share/social9_share.php 85% from 13 tests
The principal PHP file in "Open Social Share" v. 6.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 178 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("simplified-social-share.php" instead of "social9_share.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,107 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 112 | 193 | 1,451 |
CSS | 1 | 177 | 2 | 923 |
JavaScript | 2 | 17 | 19 | 381 |
SVG | 31 | 1 | 4 | 352 |
PHP code Passed 2 tests
This is a very shot review 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.47 |
Average class complexity | 17.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 29 | 35.37% |
▷ Public methods | 79 | 96.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.66% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
s9-core/assets/images/cloud.png | 13.85KB | 7.55KB | ▼ 45.52% |
s9-core/assets/images/dropdown.png | 14.96KB | 0.49KB | ▼ 96.74% |
s9-social-sharing/assets/images/cloud.png | 13.85KB | 7.55KB | ▼ 45.52% |