10% support-online

Code Review | Support Online

WordPress plugin Support Online scored10%from 54 tests.

About plugin

  • Plugin page: support-online
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2013
  • Latest release: Nov 30, 2013
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: manh nguyen sy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,454 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
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/support-online/support-online-widget.php+265
    Function create_function() is deprecated

Server metrics [RAM: ▼1.84MB] [CPU: ▼54.21ms] Passed 4 tests

Analyzing server-side resources used by Support Online
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.314.36 ▼35.49
Dashboard /wp-admin2.17 ▼1.1713.08 ▼44.56
Posts /wp-admin/edit.php2.18 ▼1.187.09 ▼42.28
Add New Post /wp-admin/post-new.php2.17 ▼3.716.12 ▼94.49
Media Library /wp-admin/upload.php2.17 ▼1.056.88 ▼29.79

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_support-online
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Support Online
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.461.71 ▼0.1241.81 ▼2.51
Dashboard /wp-admin2,209 ▲184.86 ▼0.04101.33 ▼0.2638.73 ▼4.89
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0140.01 ▼2.4637.03 ▼2.07
Add New Post /wp-admin/post-new.php1,514 ▼1917.39 ▼5.87697.57 ▲12.5851.19 ▼8.27
Media Library /wp-admin/upload.php1,385 ▼64.27 ▲0.05103.66 ▼5.2347.26 ▼2.78

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
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/support-online/support-online-widget.php+265
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_support-online
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/support-online/support-online-widget.php:18

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)
No browser errors were detected

Optimizations

Plugin configuration 93% 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 to be fixed:
  • Donate link: Invalid URI found ("thuthuatwordpress.org")
Please take inspiration from this readme.txt

support-online/support-online-widget.php 92% from 13 tests

"Support Online" version 1.0'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: Name the main plugin file the same as the plugin slug ("support-online.php" instead of "support-online-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin173 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14349173

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.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%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin