89% themediv-social-widget

Code Review | ThemeDiv Social Widget

WordPress plugin ThemeDiv Social Widget scored89%from 54 tests.

About plugin

  • Plugin page: themediv-social-w...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Feb 22, 2016
  • Latest release: Apr 12, 2016
  • Number of updates: 38
  • Update frequency: every 1.4 days
  • Top authors: faizykhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.55ms] Passed 4 tests

Server-side resources used by ThemeDiv Social Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0348.32 ▲5.85
Dashboard /wp-admin3.32 ▲0.0245.74 ▼10.93
Posts /wp-admin/edit.php3.37 ▲0.0249.53 ▼1.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.94 ▼5.16
Media Library /wp-admin/upload.php3.25 ▲0.0235.04 ▼0.33

Server storage [IO: ▲0.30MB] [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: 8 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_wp_theme_widget_social_links
widget_themediv_register_widget_google_plus
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for ThemeDiv Social Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲10014.89 ▲0.4781.27 ▲79.2351.93 ▲7.31
Dashboard /wp-admin2,198 ▲215.63 ▲0.1185.56 ▼5.8546.55 ▲4.01
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0340.97 ▼1.1534.92 ▼7.16
Add New Post /wp-admin/post-new.php1,525 ▼123.14 ▼0.45654.40 ▼40.2361.85 ▲0.35
Media Library /wp-admin/upload.php1,400 ▲34.29 ▲0.11103.80 ▲1.4141.80 ▼3.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_wp_theme_widget_social_links
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_themediv_register_widget_google_plus
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 ('Plugin' screenshot.), #2 (Widget options.), #3 (Facebook Screensot.), #4 (Google Plus Screenshot)
  • Tags: Please delete some tags, you are using 78 tag instead of maximum 10
The official readme.txt might help

themediv-social-widget/themediv-social-widget.php Passed 13 tests

The primary PHP file in "ThemeDiv Social Widget" version 1.0 is used by WordPress to initiate all plugin functionality
38 characters long description:
Facebook Like Box Widget And Shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected297 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14114271
JavaScript16026

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.67KB8.98KB▼ 51.87%
screenshot-3.png236.40KB54.98KB▼ 76.74%
screenshot-2.png13.72KB6.62KB▼ 51.78%
screenshot-4.png15.91KB7.25KB▼ 54.40%