Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.21MB] [CPU: ▼42.05ms] Passed 4 tests
Analyzing server-side resources used by Improve WP Default Social Icons Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.70 | 13.47 ▼35.80 |
Dashboard /wp-admin | 2.81 ▼0.50 | 17.66 ▼30.43 |
Posts /wp-admin/edit.php | 2.81 ▼0.55 | 16.66 ▼30.31 |
Add New Post /wp-admin/post-new.php | 2.81 ▼3.08 | 18.13 ▼71.67 |
Media Library /wp-admin/upload.php | 2.81 ▼0.42 | 17.78 ▼14.76 |
Server storage [IO: ▲2.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Improve WP Default Social Icons Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.73 ▼0.67 | 3.17 ▲1.34 | 39.43 ▼4.40 |
Dashboard /wp-admin | 2,209 ▲21 | 4.88 ▼0.16 | 103.08 ▼14.43 | 36.96 ▼5.86 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.00 ▼0.01 | 39.43 ▲2.72 | 34.54 ▼3.90 |
Add New Post /wp-admin/post-new.php | 6,421 ▲4,879 | 28.54 ▲10.08 | 917.52 ▲222.54 | 40.73 ▼16.86 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.00 | 99.94 ▼0.82 | 42.63 ▲0.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function WP_Block_Type_Registry::unregister was called incorrectly. Block type "core/social-link" is not registered. Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/improve-wp-default-social-icons-block/improve-wp-default-social-icons-block.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: comments, spam
improve-wp-default-social-icons-block/improve-wp-default-social-icons-block.php 85% from 13 tests
The main PHP file in "Improve WP Default Social Icons Block" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)
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 detected688 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 89 | 94 | 510 |
PHP | 3 | 37 | 72 | 178 |
PHP code Passed 2 tests
A brief analysis 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.29 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 9 | 100.00% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 16.52KB | 5.39KB | ▼ 67.39% |
assets/screenshot-5.png | 21.50KB | 5.78KB | ▼ 73.14% |