10% ruven-themes-social-widget

Code Review | Ruven Themes: Social Widget

WordPress plugin Ruven Themes: Social Widget scored10%from 54 tests.

About plugin

  • Plugin page: ruven-themes-soci...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.0
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 9
  • Update frequency: every 12.4 days
  • Top authors: Ruven Themes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,413 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/ruven-themes-social-widget/ruven-themes-social-widget.php+175
    syntax error, unexpected '}', expecting end of file

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

Analyzing server-side resources used by Ruven Themes: Social Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.86 ▼1.46
Dashboard /wp-admin3.31 ▲0.0045.93 ▼1.71
Posts /wp-admin/edit.php3.36 ▲0.0043.51 ▲0.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.83 ▲7.02
Media Library /wp-admin/upload.php3.23 ▲0.0034.35 ▼0.15

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • You have illegally modified 2 files (0.00KB) outside of "wp-content/plugins/ruven-themes-social-widget/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/ruven-themes-social-widget/assets/icon-256\303\227256.png"
    • (new file) "wp-content/plugins/ruven-themes-social-widget/assets/icon-128\303\227128.png"
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ruven Themes: Social Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.431.87 ▲0.0244.94 ▼2.81
Dashboard /wp-admin2,209 ▲185.87 ▲1.0398.11 ▼10.5340.96 ▼4.10
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0343.33 ▲8.8038.90 ▲3.31
Add New Post /wp-admin/post-new.php1,533 ▼1223.14 ▲4.83633.76 ▲17.3655.37 ▲5.55
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0395.74 ▼1.0242.12 ▲0.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/ruven-themes-social-widget/ruven-themes-social-widget.php on line 175

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: social widget, social links, social buttons

ruven-themes-social-widget/ruven-themes-social-widget.php Passed 13 tests

The entry point to "Ruven Themes: Social Widget" version 1.0 is a PHP file that has certain tags in its header comment area
68 characters long description:
Extends the functionality of Ruven Themes by adding a social widget.

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
There were no executable files found in this plugin319 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP16937154
JSON10098
CSS131041
SVG10026

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256×256.png5.06KB1.87KB▼ 63.06%
assets/icon-128×128.png5.59KB2.64KB▼ 52.89%