Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.10ms] Passed 4 tests
Server-side resources used by jSocial
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.72 ▼3.45 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.30 ▼11.10 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.05 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.24 ▼8.98 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.78 ▲0.16 |
Server storage [IO: ▲1.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 10 new options
New WordPress options |
---|
jsocial_attr |
jsocial_display |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
jsocial_styles |
jsocial_options |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for jSocial
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,027 ▲281 | 13.90 ▼0.33 | 21.66 ▲19.91 | 53.43 ▲9.26 |
Dashboard /wp-admin | 2,224 ▲39 | 4.93 ▼0.94 | 110.70 ▼11.71 | 76.36 ▲31.48 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.01 ▼0.04 | 39.04 ▼7.47 | 32.82 ▼5.82 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.28 ▲0.03 | 746.56 ▲77.78 | 74.74 ▲26.57 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.20 ▼0.04 | 112.56 ▼1.61 | 69.49 ▲27.00 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- jsocial_display
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jsocial-responsive-floating-social-sharing-media-bar/public/css/jsocial-custom.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
jsocial-responsive-floating-social-sharing-media-bar/jsocial.php 85% from 13 tests
Analyzing the main PHP file in "jSocial" version 1.0.0
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("jsocial-responsive-floating-social-sharing-media-bar.php" instead of "jsocial.php")
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
Everything looks great! No dangerous files found in this plugin10,132 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 161 | 0 | 8,267 |
PHP | 13 | 222 | 513 | 1,058 |
SVG | 1 | 0 | 0 | 520 |
JavaScript | 6 | 0 | 2 | 287 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 2 | |
▷ Named functions | 2 | 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
15 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/side_left_top.png | 4.16KB | 2.63KB | ▼ 36.85% |
admin/images/extremity_bottom_center.png | 4.23KB | 2.64KB | ▼ 37.69% |
admin/images/side_right_center.png | 4.17KB | 2.64KB | ▼ 36.74% |
admin/images/extremity_top_center.png | 4.24KB | 2.70KB | ▼ 36.33% |
admin/images/jquery.fs.stepper-arrows.png | 0.30KB | 0.18KB | ▼ 40.52% |