83% floatysocial-awesome-social-floating-sidebar

Code Review | FloatySocial - Awesome Social Floating Sidebar

WordPress plugin FloatySocial - Awesome Social Floating Sidebar scored83%from 54 tests.

About plugin

  • Plugin page: floatysocial-awes...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2 or later+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2023
  • Latest release: Mar 23, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: codebari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.33ms] Passed 4 tests

This is a short check of server-side resources used by FloatySocial - Awesome Social Floating Sidebar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.25 ▲3.40
Dashboard /wp-admin3.31 ▲0.0147.89 ▼2.99
Posts /wp-admin/edit.php3.36 ▲0.0148.54 ▼5.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.61 ▼12.83
Media Library /wp-admin/upload.php3.23 ▲0.0137.89 ▼0.34

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for FloatySocial - Awesome Social Floating Sidebar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲10413.22 ▼1.231.76 ▲0.0641.04 ▼3.36
Dashboard /wp-admin2,231 ▲515.83 ▲0.2188.20 ▼3.9339.79 ▼5.63
Posts /wp-admin/edit.php2,144 ▲442.33 ▲0.3642.73 ▲5.7836.03 ▲1.07
Add New Post /wp-admin/post-new.php1,557 ▲3123.29 ▲0.01659.63 ▼30.9236.10 ▼31.92
Media Library /wp-admin/upload.php1,439 ▲394.47 ▲0.2295.46 ▼14.9441.75 ▼5.90

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floatysocial-awesome-social-floating-sidebar/inc/crfs_frontend_socials.php:179
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floatysocial-awesome-social-floating-sidebar/inc/crfs_enqueue_scripts.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floatysocial-awesome-social-floating-sidebar/inc/crfs_enqueue_scripts.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floatysocial-awesome-social-floating-sidebar/inc/crfs_admin_menu_page.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt is a good inspiration

floatysocial-awesome-social-floating-sidebar/floatysocial-awesome-social-floating-sidebar.php 77% from 13 tests

"FloatySocial - Awesome Social Floating Sidebar" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 247 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "7.2 or later")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,801 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS41072,187
Markdown1800320
PHP44729290
JavaScript21124

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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

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