Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼3.59ms] Passed 4 tests
This is a short check of server-side resources used by Social Icons Obvs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 42.59 ▼1.21 |
Dashboard /wp-admin | 3.50 ▲0.20 | 51.06 ▼2.43 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 57.02 ▲9.66 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 89.66 ▼6.40 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.03 ▼4.32 |
Social Icons Obvs /wp-admin/options-general.php?page=social-icons-obvs-settings | 3.40 | 36.56 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 149 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Social Icons Obvs: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.31 ▼0.91 | 1.66 ▼0.48 | 43.88 ▼1.66 |
Dashboard /wp-admin | 2,210 ▲28 | 5.85 ▼0.00 | 106.90 ▲2.02 | 38.86 ▼6.66 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.96 ▼0.05 | 40.13 ▲3.15 | 33.96 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.39 ▲0.28 | 658.38 ▼39.84 | 49.69 ▼6.65 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.18 ▼0.03 | 96.42 ▼8.96 | 45.08 ▲1.37 |
Social Icons Obvs /wp-admin/options-general.php?page=social-icons-obvs-settings | 2,540 | 2.26 | 53.04 | 34.68 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-icons-obvs/admin/partials/social-icons-obvs-admin-section-customise.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-icons-obvs/public/partials/social-icons-obvs-public-display.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-icons-obvs/admin/partials/social-icons-obvs-admin-section-display.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/social-icons-obvs/admin/partials/social-icons-obvs-admin-field-select.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/social-icons-obvs/admin/partials/social-icons-obvs-admin-field-text.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/social-icons-obvs/admin/partials/social-icons-obvs-admin-field-checkbox-text.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/social-icons-obvs/admin/partials/social-icons-obvs-admin-page-settings.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/social-icons-obvs/admin/partials/social-icons-obvs-admin-field-select-text.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-icons-obvs/admin/partials/social-icons-obvs-admin-section-accounts.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-icons-obvs/admin/partials/social-icons-obvs-admin-section-customise-preview.php:15
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== social-icons-obvs ===
) - Tags: You are using too many tags: 24 tag instead of maximum 10
social-icons-obvs/social-icons-obvs.php Passed 13 tests
The entry point to "Social Icons Obvs" version 1.1.9 is a PHP file that has certain tags in its header comment area
74 characters long description:
Direct users to your various social accounts using customisable SVG icons.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin9,226 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,172 | 739 | 4,317 |
CSS | 6 | 73 | 50 | 1,317 |
PO File | 14 | 322 | 322 | 1,235 |
PHP | 20 | 345 | 683 | 1,161 |
Sass | 14 | 221 | 61 | 818 |
SVG | 32 | 0 | 16 | 324 |
JSON | 2 | 0 | 0 | 54 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.51% |
Functions | 4 | |
▷ Named functions | 4 | 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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/image/sio-icon-sort@2x.png | 0.20KB | 0.12KB | ▼ 38.31% |
admin/assets/image/sio-preview-background.png | 0.46KB | 0.10KB | ▼ 78.89% |
admin/assets/image/sio-icon-sort.png | 0.14KB | 0.12KB | ▼ 9.29% |
admin/assets/image/preview-bg.png | 0.25KB | 0.10KB | ▼ 61.63% |