84% embed-sendy

Code Review | Embed Sendy

WordPress plugin Embed Sendy scored84%from 54 tests.

About plugin

  • Plugin page: embed-sendy
  • Plugin version: 1.3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2018
  • Latest release: Feb 14, 2021
  • Number of updates: 14
  • Update frequency: every 73.0 days
  • Top authors: mauryaratan (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /4,035 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼2.26ms] Passed 4 tests

Server-side resources used by Embed Sendy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2334.95 ▼3.37
Dashboard /wp-admin3.65 ▲0.3452.55 ▲1.86
Posts /wp-admin/edit.php3.70 ▲0.3453.99 ▲6.03
Add New Post /wp-admin/post-new.php6.14 ▲0.2683.31 ▼5.26
Media Library /wp-admin/upload.php3.48 ▲0.2633.49 ▼2.25
Embed Sendy /wp-admin/options-general.php?page=embed_sendy3.5237.48

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 9 new options
New WordPress options
widget_embed_sendy_widget
esd_settings
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
esd_form_settings
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Embed Sendy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲27415.07 ▲0.782.03 ▲0.3937.82 ▼3.46
Dashboard /wp-admin2,382 ▲1946.58 ▲1.47133.62 ▲26.0740.11 ▼1.85
Posts /wp-admin/edit.php2,285 ▲1963.56 ▲1.5556.79 ▲20.5835.59 ▲3.18
Add New Post /wp-admin/post-new.php6,391 ▲4,87728.20 ▲10.51903.77 ▲211.9339.71 ▼14.12
Media Library /wp-admin/upload.php1,421 ▲334.36 ▲0.1682.15 ▼18.7941.25 ▼4.46
Embed Sendy /wp-admin/options-general.php?page=embed_sendy1,9078.05160.7740.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_embed_sendy_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/embed-sendy/templates/form-embed-sendy.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

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
8 plugin tags: widget, gutenberg, shortcode, subscription form, embed...

embed-sendy/embed-sendy.php Passed 13 tests

The main PHP file in "Embed Sendy" ver. 1.3.3 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
Embed Sendy subscription form, through a widget, shortcode, or as a Gutenberg block.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,801 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP83947441,439
JavaScript63555216
Sass313185
CSS312061

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity38.25
▷ Minimum class complexity4.00
▷ Maximum class complexity67.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods68
▷ Static methods34.41%
▷ Public methods6494.12%
▷ Protected methods00.00%
▷ Private methods45.88%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin