73% da-sendy-api-integration

Code Review | Sendy - API Integration

WordPress plugin Sendy - API Integration scored 73% from 54 tests.

About plugin

  • Plugin page: da-sendy-api-inte...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 5.8.1
  • First release: Aug 30, 2017
  • Latest release: Apr 4, 2018
  • Number of updates: 6
  • Update frequency: every 36.2 days
  • Top authors: Digital Arm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,046 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.04MB] [CPU: ▼185.08ms] Passed 4 tests

A check of server-side resources used by Sendy - API Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.56 ▼0.2715.70 ▼21.01
Dashboard /wp-admin2.61 ▼0.4417.46 ▼37.78
Posts /wp-admin/edit.php2.61 ▼0.4918.71 ▼32.13
Add New Post /wp-admin/post-new.php2.61 ▼2.8215.35 ▼649.41
Media Library /wp-admin/upload.php2.61 ▼0.3917.49 ▼20.07
Sendy API /wp-admin/options-general.php?page=da-sendy-api-integration2.6117.93

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Sendy - API Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲22416.80 ▲0.9113.78 ▲1.6848.32 ▼8.22
Dashboard /wp-admin2,972 ▲415.96 ▼0.04145.44 ▼13.79109.81 ▼6.01
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0069.61 ▼0.4785.47 ▼5.20
Add New Post /wp-admin/post-new.php1,503 ▼18018.44 ▲0.04404.60 ▼11.20115.60 ▲0.84
Media Library /wp-admin/upload.php1,815 ▲85.11 ▲0.10151.85 ▼16.52124.11 ▼0.23
Sendy API /wp-admin/options-general.php?page=da-sendy-api-integration1,0522.0565.3885.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/da-sendy-api-integration/da-sendy-api-integration.php+69
    Trying to access array offset on value of type bool

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=da-sendy-api-integration
    • > Notice in wp-content/plugins/da-sendy-api-integration/da-sendy-api-integration.php+71
    Trying to access array offset on value of type bool

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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/da-sendy-api-integration/templates/form.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/da-sendy-api-integration/templates/admin-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: sendy, api

da-sendy-api-integration/da-sendy-api-integration.php Passed 13 tests

The main PHP script in "Sendy - API Integration" version 0.2.1 is automatically included on every request by WordPress
27 characters long description:
Integration with Sendy API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected303 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin