84% divi-socials

Code Review | Divi Socials

WordPress plugin Divi Socials scored84%from 54 tests.

About plugin

  • Plugin page: divi-socials
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Dec 23, 2016
  • Latest release: Sep 4, 2019
  • Number of updates: 6
  • Update frequency: every 164.2 days
  • Top authors: davexpression (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,291 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.36ms] Passed 4 tests

Server-side resources used by Divi Socials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.23 ▼1.38
Dashboard /wp-admin3.31 ▲0.0050.71 ▼7.49
Posts /wp-admin/edit.php3.36 ▲0.0049.27 ▲2.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.34 ▼0.67
Media Library /wp-admin/upload.php3.23 ▲0.0034.26 ▼3.91

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Divi Socials: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.17 ▲0.002.22 ▲0.3148.50 ▲3.42
Dashboard /wp-admin2,195 ▲185.66 ▲0.1287.66 ▼12.8542.62 ▼0.07
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0438.87 ▲0.9734.99 ▼3.38
Add New Post /wp-admin/post-new.php1,526 ▼022.97 ▼0.45677.09 ▼19.8161.07 ▲8.12
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.19104.93 ▼11.5441.81 ▼7.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 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 get_option() in wp-content/plugins/divi-socials/public/partials/divi-socials-icons.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Donate link: Invalid URI found ("www.figarts.co/donate")
The official readme.txt might help

divi-socials/divi-socials.php Passed 13 tests

The principal PHP file in "Divi Socials" v. 1.1 is loaded by WordPress automatically on each request
89 characters long description:
Divi Socials adds more social icons with different styles and colors to your Divi header.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected475 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP9196539424
CSS24826
JavaScript112625

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods31
▷ Static methods13.23%
▷ Public methods2580.65%
▷ Protected methods13.23%
▷ Private methods516.13%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected