10% oauth-proxy-service

Code Review | Infusionsoft Proxy Service

WordPress plugin Infusionsoft Proxy Service scored 10% from 54 tests.

About plugin

  • Plugin page: oauth-proxy-service
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Mar 13, 2018
  • Latest release: Aug 7, 2020
  • Number of updates: 5
  • Update frequency: every 175.6 days
  • Top authors: trainingbusinesspros (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 770 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/oauth-proxy-service/service.php+22
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.06ms] Passed 4 tests

Server-side resources used by Infusionsoft Proxy Service
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.16 ▼35.98
Dashboard /wp-admin2.10 ▼1.207.13 ▼40.83
Posts /wp-admin/edit.php2.11 ▼1.255.93 ▼44.21
Add New Post /wp-admin/post-new.php2.10 ▼3.786.71 ▼91.23
Media Library /wp-admin/upload.php2.10 ▼1.126.05 ▼28.15
Oauth Proxy /wp-admin/options-general.php?page=infusionsoft_oauth_settings2.116.10

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Infusionsoft Proxy Service: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.22 ▼1.361.76 ▼0.1744.26 ▲0.18
Dashboard /wp-admin2,213 ▲224.86 ▼1.04100.19 ▼5.4637.86 ▼9.18
Posts /wp-admin/edit.php2,096 ▲71.99 ▲0.0040.15 ▲4.0934.28 ▲1.62
Add New Post /wp-admin/post-new.php1,545 ▲718.11 ▼5.03602.53 ▼75.5252.80 ▲0.41
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0996.79 ▼5.0741.35 ▼2.00
Oauth Proxy /wp-admin/options-general.php?page=infusionsoft_oauth_settings8302.0624.1728.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/oauth-proxy-service/service.php+22
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=infusionsoft_oauth_settings
    • > Notice in wp-content/plugins/oauth-proxy-service/service.php+24
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=infusionsoft_oauth_settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method iop_infusionsoft_oauth_token_proxy_service::refresh_token() should not be called statically

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oauth-proxy-service/infusionsoft-manager-example.php:154
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/oauth-proxy-service/service.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/oauth-proxy-service/oauth.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Invalid URI ("")
The official readme.txt might help

oauth-proxy-service/oauth.php 92% from 13 tests

The primary PHP file in "Infusionsoft Proxy Service" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("oauth-proxy-service.php" instead of "oauth.php")

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
Good job! No executable or dangerous file extensions detected312 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39243312

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.00
▷ Minimum class complexity4.00
▷ Maximum class complexity14.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods1386.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin