78% addiction-recovery-connector

Code Review | Addiction Recovery Connector

WordPress plugin Addiction Recovery Connector scored 78% from 54 tests.

About plugin

  • Plugin page: addiction-recover...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 5.9.2
  • First release: Sep 4, 2021
  • Latest release: Dec 16, 2021
  • Number of updates: 9
  • Update frequency: every 11.6 days
  • Top authors: addictionrecovery21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 257 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼1.50MB] [CPU: ▼338.24ms] Passed 4 tests

A check of server-side resources used by Addiction Recovery Connector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.94 ▼0.5719.91 ▼59.44
Dashboard /wp-admin2.86 ▼0.5415.67 ▼20.31
Posts /wp-admin/edit.php2.86 ▼0.7813.96 ▼26.61
Add New Post /wp-admin/post-new.php2.86 ▼4.1014.14 ▼1,246.60
Media Library /wp-admin/upload.php2.86 ▼0.4313.90 ▼11.38

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Addiction Recovery Connector: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲4815.74 ▲0.586.02 ▲0.112.46 ▲0.06
Dashboard /wp-admin2,899 ▲416.13 ▲0.02139.36 ▼13.24177.32 ▲16.68
Posts /wp-admin/edit.php2,705 ▲173.24 ▲0.0065.42 ▲1.25140.35 ▼1.17
Add New Post /wp-admin/post-new.php1,703 ▲4220.85 ▲4.76445.76 ▼8.12181.67 ▼5.56
Media Library /wp-admin/upload.php1,715 ▲205.50 ▼0.01147.03 ▼14.49249.07 ▲46.71

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
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/addiction-recovery-connector/inc/hooks.php+169
    Undefined index: user

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/addiction-recovery-connector/index.php
  • 4× 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/addiction-recovery-connector/custom_routes/class.main.php:417
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addiction-recovery-connector/inc/hooks.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addiction-recovery-connector/inc/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addiction-recovery-connector/inc/admin.php:2

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)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: post scheduling, blog, publishing, content publishing

addiction-recovery-connector/plugin.php 85% from 13 tests

The entry point to "Addiction Recovery Connector" version 1.0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.5")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("addiction-recovery-connector.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin557 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin