Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.99ms] Passed 4 tests
An overview of server-side resources used by Social Divi
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.18 ▲1.89 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.09 ▼12.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.60 ▼3.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.63 ▼9.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.49 ▲1.81 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Social Divi
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.14 | 1.56 ▼0.27 | 36.98 ▼2.89 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.04 | 113.44 ▲11.61 | 41.88 ▼1.20 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.02 | 40.47 ▲3.85 | 35.75 ▲4.44 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.16 ▼5.26 | 603.67 ▼79.52 | 59.72 ▲10.10 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.01 | 102.31 ▼5.39 | 41.32 ▼4.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/social-divi/src/includes/social_icons.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/social-divi/src/includes/social_icons.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-divi/src/actions/update-theme-options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-divi/src/actions/add-links-to-plugin-meta.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/social-divi/src/actions/set-available-icons.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/social-divi/src/actions/set-available-icons.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-divi/src/actions/add-icons-template.php:8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: icons, social, social media, divi
social-divi/social-divi.php 92% from 13 tests
Analyzing the main PHP file in "Social Divi" version 1.7.0
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected417 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 33 | 61 | 288 |
Markdown | 2 | 33 | 0 | 86 |
JavaScript | 2 | 5 | 4 | 36 |
CSS | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected