Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼8.22ms] Passed 4 tests
Analyzing server-side resources used by Social Media Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 40.48 ▲3.20 |
Dashboard /wp-admin | 3.31 ▲0.01 | 41.75 ▼4.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.46 ▲1.24 |
Add New Post /wp-admin/post-new.php | 5.15 ▼0.74 | 71.45 ▼24.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.45 ▼5.14 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 242 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Social Media Block: 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,950 ▲204 | 14.84 ▲0.56 | 32.40 ▲30.65 | 43.86 ▲3.47 |
Dashboard /wp-admin | 2,195 ▲17 | 5.54 ▼0.10 | 82.70 ▼23.96 | 37.98 ▼2.74 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.02 | 35.68 ▼0.71 | 31.05 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.20 ▲0.31 | 652.42 ▼15.54 | 34.07 ▼18.00 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▼0.07 | 95.48 ▼17.96 | 41.82 ▼3.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/social-media-block/icons_theme/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (One option is to give your icons a round shape), #2 (Alternatively, the icons can be squared), #3 (You can also show rectangle icons, which spell out the action)
social-media-block/social-media-block.php Passed 13 tests
The main PHP file in "Social Media Block" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Drag & drop block in Gutenberg to place social media buttons on your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected521 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 13 | 51 | 371 |
PHP | 2 | 33 | 161 | 68 |
SVG | 2 | 2 | 0 | 60 |
CSS | 2 | 4 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
233 PNG files occupy 0.72MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons_theme/round/flipboard.png | 3.47KB | 1.76KB | ▼ 49.31% |
icons_theme/round/stumbleupon.png | 4.48KB | 2.30KB | ▼ 48.55% |
icons_theme/round/windows_store.png | 4.67KB | 2.34KB | ▼ 49.83% |
icons_theme/round/playstore.png | 4.36KB | 2.25KB | ▼ 48.36% |
icons_theme/round/github.png | 4.00KB | 2.22KB | ▼ 44.58% |