84% podamibe-social-icons-widget

Code Review | Podamibe Social Widget

WordPress plugin Podamibe Social Widget scored84%from 54 tests.

About plugin

  • Plugin page: podamibe-social-i...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2016
  • Latest release: Dec 28, 2017
  • Number of updates: 8
  • Update frequency: every 58.4 days
  • Top authors: podamibe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,591 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.80ms] Passed 4 tests

A check of server-side resources used by Podamibe Social Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.49 ▲2.73
Dashboard /wp-admin3.37 ▲0.0244.14 ▼18.80
Posts /wp-admin/edit.php3.42 ▲0.0643.55 ▼1.21
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.33 ▼20.13
Media Library /wp-admin/upload.php3.29 ▲0.0635.46 ▲0.94

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_podamibe_social_widget
widget_recent-posts

Browser metrics Passed 4 tests

Podamibe Social Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.50 ▼0.881.69 ▲0.1642.59 ▲4.27
Dashboard /wp-admin2,224 ▲335.30 ▼0.57111.59 ▲4.8938.56 ▼7.41
Posts /wp-admin/edit.php2,091 ▲202.32 ▲0.3035.17 ▼1.8333.70 ▼2.43
Add New Post /wp-admin/post-new.php1,534 ▲623.16 ▲0.12630.32 ▲11.9834.16 ▼24.40
Media Library /wp-admin/upload.php1,413 ▲284.38 ▲0.1895.09 ▼6.4043.77 ▼3.03

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_podamibe_social_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/podamibe-social-icons-widget/inc/podamibe-social-widget.php:7

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: social links, social icons widget, widget, social icons, social sites

podamibe-social-icons-widget/podamibe-social.php 85% from 13 tests

"Podamibe Social Widget" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("podamibe-social-icons-widget.php" instead of "podamibe-social.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,038 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
PHP24131244
CSS31310103
JavaScript1106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity10.50
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/sprites.png10.21KB3.49KB▼ 65.81%