83% frontend-dashboard-social-chat

Code Review | Frontend Dashboard Social Chat

WordPress plugin Frontend Dashboard Social Chat scored83%from 54 tests.

About plugin

  • Plugin page: frontend-dashboar...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Nov 20, 2019
  • Latest release: Apr 19, 2020
  • Number of updates: 10
  • Update frequency: every 15.1 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,107 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Frontend Dashboard Social Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.45 ▼1.48
Dashboard /wp-admin3.31 ▲0.0144.76 ▼7.11
Posts /wp-admin/edit.php3.36 ▲0.0047.04 ▲1.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.18 ▲0.53
Media Library /wp-admin/upload.php3.24 ▲0.0035.49 ▲2.53

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Frontend Dashboard Social Chat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.47 ▼0.311.65 ▼0.1640.59 ▼1.70
Dashboard /wp-admin2,221 ▲334.80 ▼1.05103.47 ▼13.0041.11 ▼3.02
Posts /wp-admin/edit.php2,104 ▲152.03 ▲0.0338.77 ▲1.6336.25 ▲1.00
Add New Post /wp-admin/post-new.php1,545 ▲2523.20 ▲0.05647.37 ▲41.5151.37 ▼1.29
Media Library /wp-admin/upload.php1,400 ▲94.26 ▲0.02100.70 ▲5.4843.12 ▲0.41

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 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/frontend-dashboard-social-chat/admin/layouts/FEDSCHATWhatsappLayout.php:15
    • > PHP Fatal error
      require_once(): Failed opening required 'BC_FED_SCHAT_PLUGIN_DIR/admin/settings/FEDSCHATMenu.php' (include_path='.:/usr/share/php') in wp-content/plugins/frontend-dashboard-social-chat/fed_schat_autoload.php on line 7
    • > PHP Warning
      require_once(BC_FED_SCHAT_PLUGIN_DIR/admin/settings/FEDSCHATMenu.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-dashboard-social-chat/fed_schat_autoload.php on line 7
    • > PHP Warning
      Use of undefined constant BC_FED_SCHAT_PLUGIN_DIR - assumed 'BC_FED_SCHAT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontend-dashboard-social-chat/fed_schat_autoload.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: frontend dashboard, dashboard, paypal, payment

frontend-dashboard-social-chat/frontend-dashboard-social-chat.php 85% from 13 tests

The primary PHP file in "Frontend Dashboard Social Chat" version 1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,110 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP66992839
CSS1400221
JavaScript18050

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.33
▷ Minimum class complexity7.00
▷ Maximum class complexity21.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.62MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-4.png195.55KB50.83KB▼ 74.01%
screenshots/screenshot-5.png166.92KB39.63KB▼ 76.26%
screenshots/screenshot-2.png15.83KB4.69KB▼ 70.34%
screenshots/screenshot-1.png111.02KB34.07KB▼ 69.31%
screenshots/screenshot-3.png148.75KB37.25KB▼ 74.96%