10% dimbal-social-popup

Code Review | Dimbal Social Popup

WordPress plugin Dimbal Social Popup scored 10% from 54 tests.

About plugin

  • Plugin page: dimbal-social-popup
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 8, 2013
  • Latest release: Dec 20, 2013
  • Number of updates: 10
  • Update frequency: every 1.2 days
  • Top authors: benhallbenhall (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 2,188 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php+131
    Undefined variable: key_base

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

A check of server-side resources used by Dimbal Social Popup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.43 ▼6.33
Dashboard /wp-admin3.31 ▲0.0044.89 ▼5.40
Posts /wp-admin/edit.php3.36 ▲0.0042.21 ▼6.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.04 ▼4.80
Media Library /wp-admin/upload.php3.23 ▲0.0033.43 ▼1.41

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Dimbal Social Popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.091.70 ▼0.0941.06 ▼8.04
Dashboard /wp-admin2,203 ▲155.80 ▼0.09101.30 ▼16.4139.92 ▼9.32
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0235.48 ▼0.8832.70 ▼4.75
Add New Post /wp-admin/post-new.php1,542 ▲2018.94 ▼4.12641.67 ▼175.1360.60 ▲6.22
Media Library /wp-admin/upload.php1,385 ▼34.30 ▲0.11102.47 ▲0.3245.80 ▼1.53

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dimbal-social-popup/class.DimbalSocialSharing.php
    • > /wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php
  • 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 140
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 167
    • > PHP Notice
      Undefined variable: key_base in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 149
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 167
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 140
    • > PHP Notice
      Undefined variable: key_base in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 182
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 158
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 158
    • > PHP Notice
      Undefined variable: key_base in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 193
    • > PHP Notice
      Undefined variable: selected in wp-content/plugins/dimbal-social-popup/class.DimbalPopupAdmin.php on line 182

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: post sharing, social popup, facebook sharing, post popup, facebook post sharing...

dimbal-social-popup/index.php 92% from 13 tests

The main PHP file in "Dimbal Social Popup" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dimbal-social-popup.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin634 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP36248389
JavaScript12217132
CSS280113

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
20 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
social-icons-16/social_twitter_button_blue_16.png0.74KB0.84KB0.00%
social-icons-16/social_facebook_box_blue_16.png0.56KB0.68KB0.00%
social-icons-16/social_twitter_box_blue_16.png0.62KB0.83KB0.00%
social-icons-16/social_lastfm_box_red_16.png0.70KB0.90KB0.00%
social-icons-16/social_reddit_button_16.png0.73KB0.69KB▼ 5.86%