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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.02ms] Passed 4 tests
Server-side resources used by Lightweight Social Icons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.41 ▼4.29 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.33 ▼2.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.35 ▼1.69 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.04 ▼15.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.78 ▲2.27 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_lsi_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lightweight Social Icons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.75 ▲0.44 | 1.97 ▲0.14 | 45.27 ▼1.72 |
Dashboard /wp-admin | 2,189 ▲9 | 5.75 ▲0.06 | 86.94 ▼7.81 | 38.02 ▼7.48 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.03 | 35.58 ▼0.28 | 34.38 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 17.70 ▼5.55 | 695.56 ▲15.95 | 57.38 ▼7.56 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▲0.03 | 106.50 ▼2.49 | 45.14 ▼4.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_lsi_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- 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
Everything seems fine, however this is by no means 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightweight-social-icons/lightweight-social-icons.php:16
- > PHP Fatal error
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 Passed 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
5 plugin tags: social media, social icons, social profiles, social networking, social icon widget
lightweight-social-icons/lightweight-social-icons.php Passed 13 tests
The main PHP file in "Lightweight Social Icons" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
106 characters long description:
Add simple icon font social media buttons. Choose the order, colors, size and more for 42 different icons!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected918 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 77 | 55 | 524 |
CSS | 2 | 20 | 8 | 273 |
SVG | 1 | 0 | 0 | 83 |
JavaScript | 2 | 4 | 1 | 38 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 66.00 |
▷ Minimum class complexity | 66.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 11.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin