Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▲1.97ms] Passed 4 tests
This is a short check of server-side resources used by Share on Social
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.12 ▼1.97 |
Dashboard /wp-admin | 3.37 ▲0.07 | 53.50 ▲0.51 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 53.35 ▲6.56 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 95.61 ▲6.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 42.77 ▲2.77 |
Lockers /wp-admin/edit.php?post_type=sos | 3.38 | 44.13 |
Statistics /wp-admin/edit.php?post_type=sos&page=sos_stats_page | 3.27 | 36.68 |
Settings /wp-admin/edit.php?post_type=sos&page=sos_settings_page | 3.26 | 33.25 |
Add New /wp-admin/post-new.php?post_type=sos | 3.44 | 53.79 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
sos_common_options |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Share on Social
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.30 ▼0.05 | 1.70 ▼0.02 | 46.91 ▲3.78 |
Dashboard /wp-admin | 2,217 ▲40 | 5.56 ▼0.08 | 92.16 ▼12.60 | 82.16 ▲34.89 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 1.95 ▼0.05 | 37.35 ▲0.33 | 34.89 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,709 ▲20 | 22.14 ▼1.94 | 662.49 ▲49.83 | 55.20 ▲5.06 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.12 ▼0.05 | 96.93 ▲0.22 | 76.03 ▲32.30 |
Lockers /wp-admin/edit.php?post_type=sos | 1,740 | 1.97 | 35.09 | 34.44 |
Statistics /wp-admin/edit.php?post_type=sos&page=sos_stats_page | 1,074 | 5.50 | 45.32 | 48.77 |
Settings /wp-admin/edit.php?post_type=sos&page=sos_settings_page | 918 | 2.04 | 24.71 | 25.13 |
Add New /wp-admin/post-new.php?post_type=sos | 2,334 | 7.34 | 150.26 | 130.84 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 10× PHP files output text when accessed directly:
- > /wp-content/plugins/share-on-social/admin/class-ajax.php
- > /wp-content/plugins/share-on-social/frontend/class-frontend.php
- > /wp-content/plugins/share-on-social/admin/class-sos.php
- > /wp-content/plugins/share-on-social/include/class-helper.php
- > /wp-content/plugins/share-on-social/share-on-social.php
- > /wp-content/plugins/share-on-social/admin/class-stats.php
- > /wp-content/plugins/share-on-social/admin/class-admin.php
- > /wp-content/plugins/share-on-social/admin/class-options.php
- > /wp-content/plugins/share-on-social/admin/class-help.php
- > /wp-content/plugins/share-on-social/admin/class-activator.php
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: social network, users wall, traffic, social, facebook...
share-on-social/share-on-social.php 92% from 13 tests
"Share on Social" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,629 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 185 | 826 | 1,356 |
JavaScript | 2 | 32 | 109 | 250 |
CSS | 1 | 4 | 0 | 23 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 4 | 5.13% |
▷ Public methods | 78 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/gplus-48.png | 2.36KB | 1.32KB | ▼ 44.10% |
images/sos-icon.png | 0.35KB | 0.14KB | ▼ 61.43% |
images/fb-48.png | 0.80KB | 0.68KB | ▼ 14.77% |