Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/g-social-icons/g-social-icons.php+55
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼55.21ms] Passed 4 tests
A check of server-side resources used by G Social Icons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.85 ▼31.47 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.43 ▼52.93 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.43 ▼42.91 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.19 ▼93.53 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.19 ▼28.19 |
G Social Icons /wp-admin/options-general.php?page=g-social-icons | 2.05 | 6.24 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_g-social-icons-widget |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for G Social Icons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.61 ▼0.98 | 5.69 ▲3.88 | 42.88 ▼1.01 |
Dashboard /wp-admin | 2,204 ▲16 | 5.85 ▲0.93 | 106.40 ▲3.91 | 40.22 ▼3.45 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 1.97 ▼0.12 | 34.06 ▼7.57 | 34.32 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.45 ▲0.24 | 673.23 ▲62.86 | 63.06 ▼3.25 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.13 ▼0.10 | 104.55 ▲3.31 | 46.30 ▲1.10 |
G Social Icons /wp-admin/options-general.php?page=g-social-icons | 1,166 | 2.06 | 22.73 | 33.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > Deprecated in wp-content/plugins/g-social-icons/g-social-icons.php+55
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_g-social-icons-widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=g-social-icons
- > Deprecated in wp-content/plugins/g-social-icons/g-social-icons.php+55
Function create_function() is deprecated
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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/g-social-icons/public/class-g-social-icons-widget.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/g-social-icons/admin/views/admin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: icons, media, social
g-social-icons/g-social-icons.php Passed 13 tests
The entry point to "G Social Icons" version 1.2.0 is a PHP file that has certain tags in its header comment area
33 characters long description:
Easily display social media icons
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin722 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 75 | 285 | 409 |
SVG | 15 | 0 | 15 | 246 |
Markdown | 1 | 6 | 0 | 28 |
JavaScript | 1 | 10 | 4 | 22 |
CSS | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin