10% wp-max-social-widget

Code Review | wp max social widget

WordPress plugin wp max social widget scored10%from 54 tests.

About plugin

  • Plugin page: wp-max-social-widget
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jun 1, 2012
  • Latest release: Jan 22, 2013
  • Number of updates: 18
  • Update frequency: every 13.1 days
  • Top authors: ramandeep000 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /11,001 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wp-max-social-widget/wp-max-social-widget.php+22
    Methods with the same name as their class will not be constructors in a future version of PHP; maxsocial has a deprecated constructor

Server metrics [RAM: ▼1.60MB] [CPU: ▼54.45ms] Passed 4 tests

This is a short check of server-side resources used by wp max social widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.075.50 ▼45.72
Dashboard /wp-admin2.41 ▼0.897.23 ▼41.32
Posts /wp-admin/edit.php2.41 ▼0.946.27 ▼43.66
Add New Post /wp-admin/post-new.php2.41 ▼3.486.26 ▼87.09
Media Library /wp-admin/upload.php2.41 ▼0.825.84 ▼28.82

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for wp max social widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,666 ▼8013.66 ▼0.7033.87 ▲31.7943.31 ▼0.93
Dashboard /wp-admin2,066 ▼1255.51 ▲0.6184.38 ▼26.8038.51 ▼4.77
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0134.90 ▼0.5232.25 ▼1.31
Add New Post /wp-admin/post-new.php1,542 ▲518.29 ▼4.88599.64 ▼41.4163.06 ▲11.16
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0992.69 ▼5.2540.98 ▼3.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/wp-max-social-widget/wp-max-social-widget.php+22
    Methods with the same name as their class will not be constructors in a future version of PHP; maxsocial has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_maxsocial

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-max-social-widget/wp-max-social-widget.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-max-social-widget/wp-max-social-widget.php Passed 13 tests

The main PHP file in "wp max social widget" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
100 characters long description:
WP Max Social Wigdet : Wordpress Sidebar widget To combine your social media profiles and bookmarks.

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
There were no executable files found in this plugin581 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP125124404
CSS161177

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity7.60
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
34 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/utube.png3.40KB1.02KB▼ 70.13%
images/rss.png3.38KB0.72KB▼ 78.56%
images/linkedin.png3.22KB0.58KB▼ 82.07%
images/pinterest.png3.37KB0.95KB▼ 71.95%
images/bebo.png3.31KB0.67KB▼ 79.76%