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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.34ms] Passed 4 tests
Server-side resources used by Social Simple Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.12 ▲1.91 |
Dashboard /wp-admin | 3.37 ▲0.02 | 47.06 ▼14.50 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 52.65 ▲6.56 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.82 ▼1.96 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.42 ▲1.18 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_social_simple_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Social Simple Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.23 ▼1.15 | 1.67 ▼0.06 | 44.50 ▲5.34 |
Dashboard /wp-admin | 2,211 ▲32 | 4.84 ▼1.04 | 106.28 ▲3.36 | 42.75 ▼0.83 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.04 ▼0.02 | 38.06 ▲1.33 | 34.97 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 18.37 ▼4.82 | 607.02 ▼47.41 | 74.58 ▲19.94 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.20 ▼0.06 | 95.25 ▼13.48 | 40.73 ▼7.41 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_social_simple_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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)
Good news, no errors were detected
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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/social-simple-widget/social_simple_widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-simple-widget/social_simple_widget.php 92% from 13 tests
The entry point to "Social Simple Widget" version 2.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("social-simple-widget.php" instead of "social_simple_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,558 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 685 |
JavaScript | 2 | 3 | 8 | 478 |
PHP | 1 | 71 | 27 | 222 |
CSS | 3 | 2 | 3 | 173 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 9.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/custom_submit.png | 0.97KB | 0.99KB | 0.00% |
images/colorpicker_hsb_h.png | 0.99KB | 0.77KB | ▼ 21.94% |
images/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |
images/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
images/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |