10% getsoapy

Code Review | getSoapy

WordPress plugin getSoapy scored10%from 54 tests.

About plugin

  • Plugin page: getsoapy
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2021
  • Latest release: Jan 5, 2023
  • Number of updates: 17
  • Update frequency: every 34.2 days
  • Top authors: getsoapy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /672 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
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/getsoapy/activate.php+28
    file_get_contents(https://getsoapy.com/api/embed/suggestBusinessId?url=http://wp.com): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Server metrics [RAM: ▼0.87MB] [CPU: ▼31.23ms] Passed 4 tests

An overview of server-side resources used by getSoapy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0941.85 ▲0.89
Dashboard /wp-admin3.11 ▼0.2328.15 ▼26.07
Posts /wp-admin/edit.php3.11 ▼0.2824.98 ▼20.35
Add New Post /wp-admin/post-new.php3.11 ▼2.8123.63 ▼70.91
Media Library /wp-admin/upload.php3.11 ▼0.1525.54 ▼7.57
getSoapy /wp-admin/plugins.php?page=getsoapy3.1125.63

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

getSoapy: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲24214.99 ▲0.2554.73 ▲53.0137.84 ▼9.54
Dashboard /wp-admin2,210 ▲195.01 ▲0.12115.11 ▼0.0543.13 ▼0.44
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0139.65 ▲4.8435.46 ▲3.25
Add New Post /wp-admin/post-new.php6,196 ▲4,68218.92 ▲1.52884.13 ▲177.9153.36 ▼8.41
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0594.02 ▼10.3240.51 ▼2.09
getSoapy /wp-admin/plugins.php?page=getsoapy8672.0626.8829.26

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
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/getsoapy/admin.php+41
    Undefined offset: 4
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=getsoapy
    • > Notice in wp-content/plugins/getsoapy/admin.php+41
    Undefined offset: 4

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/getsoapy/payments-verification.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/getsoapy/getsoapy.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getsoapy/payments.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getsoapy/admin.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getsoapy/block.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/getsoapy/activate.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getsoapy/public.php:35

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/plugins.php?page=getsoapy
    • > Network (severe)
    https://getsoapy.com/api/embed/suggestBusinessId?url= - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: payments, window cleaner, quotes, customer portal

getsoapy/getsoapy.php Passed 13 tests

The primary PHP file in "getSoapy" version 1.5.2 is used by WordPress to initiate all plugin functionality
51 characters long description:
Add getSoapy payment and quote widgets to wordpress

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
Success! There were no dangerous files found in this plugin476 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP77436370
JavaScript150106

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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