10% wp-aio-social

Code Review | Wp AIO Social

WordPress plugin Wp AIO Social scored 10% from 54 tests.

About plugin

  • Plugin page: wp-aio-social
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Jul 15, 2014
  • Latest release: Oct 22, 2014
  • Number of updates: 7
  • Update frequency: every 14.1 days
  • Top authors: ramandeep000 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,757 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-aio-social/lib/social.class.php+31
    Undefined index: EnableSharing

Server metrics [RAM: ▼1.56MB] [CPU: ▼49.11ms] Passed 4 tests

A check of server-side resources used by Wp AIO Social
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.43 ▼1.038.32 ▼33.34
Dashboard /wp-admin2.45 ▼0.8510.43 ▼38.96
Posts /wp-admin/edit.php2.45 ▼0.918.70 ▼37.95
Add New Post /wp-admin/post-new.php2.45 ▼3.4410.13 ▼86.20
Media Library /wp-admin/upload.php2.45 ▼0.789.15 ▼25.43
Wp Aio Social /wp-admin/options-general.php?page=wp-aio-social2.458.94

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 16 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_rhea-socialicons-widget
widget_rhea-soundcloud-widget
widget_rhea-instagram-widget
widget_rhea-subscribe-widget
widget_rhea-fb-widget
db_upgraded
widget_rhea-gplus-widget
widget_social-counter-widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Wp AIO Social
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲6114.59 ▲0.2135.89 ▲34.3740.97 ▲1.32
Dashboard /wp-admin2,081 ▼1075.69 ▼0.1888.15 ▼15.6137.86 ▼6.54
Posts /wp-admin/edit.php2,115 ▲262.32 ▲0.3537.57 ▼0.7731.00 ▼0.76
Add New Post /wp-admin/post-new.php1,529 ▼1423.36 ▲5.30606.78 ▼56.3033.44 ▼51.70
Media Library /wp-admin/upload.php1,406 ▲184.52 ▲0.34102.88 ▼15.1145.46 ▼4.23
Wp Aio Social /wp-admin/options-general.php?page=wp-aio-social9842.6029.0741.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-aio-social/lib/social.class.php+31
    Undefined index: EnableSharing
  • This plugin did not uninstall successfully, leaving 16 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_rhea-socialicons-widget
    • widget_recent-posts
    • widget_rhea-flickr-widget
    • widget_rhea-gplus-widget
    • widget_social-counter-widget
    • widget_rhea-instagram-widget
    • widget_recent-comments
    • widget_rhea-social-tabs-widget
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > Notice in wp-content/plugins/wp-aio-social/lib/social.class.php+31
    Undefined index: EnableSharing
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_fb is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_gplus is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_twitter is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_soundcloud is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_subscribe is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_flickr is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_socialicons is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_counter is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_SocialTabs is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RheaWidget_instagram is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-aio-social/admin/lib/phpFlickr/phpFlickr.php
    • > /wp-content/plugins/wp-aio-social/admin/lib/phpFlickr/example.php
  • 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'RHEAPATH/admin/inc/widgets/widgets.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-aio-social/admin/inc/widgets/init.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wp-aio-social/functions.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-aio-social/admin/inc/widgets/gplus.widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-aio-social/init.php:3
    • > PHP Warning
      Use of undefined constant RHEAPATH - assumed 'RHEAPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-aio-social/admin/inc/widgets/init.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-aio-social/wp-aio-social.php:21
    • > PHP Notice
      unserialize(): Error at offset 0 of 169 bytes in wp-content/plugins/wp-aio-social/admin/lib/phpFlickr/phpFlickr.php on line 601
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-aio-social/admin/inc/widgets/icons.widget.php:9
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/wp-aio-social/admin/lib/phpFlickr/example.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-aio-social/admin/lib/settings.class.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=wp-aio-social
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

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
7 plugin tags: social icons, instagram feed, all in one social widget, wordpress social counter, wordpress social widget...

wp-aio-social/wp-aio-social.php Passed 13 tests

"Wp AIO Social" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
WP Aio Social :An All In One Social Plugin for Wordpress, Powered With Social Widgets, Social Icons, Sharing and Badges.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,275 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP251,5827263,177
CSS74253485
HTML120315
JSON100232
SVG10048
JavaScript16218

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity24.83
▷ Minimum class complexity1.00
▷ Maximum class complexity184.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods294
▷ Static methods165.44%
▷ Public methods28095.24%
▷ Protected methods00.00%
▷ Private methods144.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin