83% ajax-sendy-newsletter

Code Review | Newsletter using Sendy

WordPress plugin Newsletter using Sendy scored83%from 54 tests.

About plugin

  • Plugin page: ajax-sendy-newsle...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 4, 2022
  • Latest release: Jan 7, 2022
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: simplior (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 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: ▲0.01MB] [CPU: ▼2.50ms] Passed 4 tests

Server-side resources used by Newsletter using Sendy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.27 ▲3.04
Dashboard /wp-admin3.32 ▲0.0244.16 ▼3.00
Posts /wp-admin/edit.php3.37 ▲0.0145.45 ▲0.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.84 ▼9.40
Media Library /wp-admin/upload.php3.24 ▲0.0132.96 ▲1.63
Newsletter Settings /wp-admin/options-general.php?page=newsletter-sendy-settings3.2429.66

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Newsletter using Sendy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14213.62 ▼0.965.61 ▲3.9342.87 ▲1.99
Dashboard /wp-admin2,210 ▲224.84 ▼0.1198.88 ▼14.1837.91 ▼4.12
Posts /wp-admin/edit.php2,090 ▲12.18 ▲0.1834.43 ▼5.8430.24 ▼8.54
Add New Post /wp-admin/post-new.php1,517 ▼1617.43 ▼5.77674.70 ▲5.7153.54 ▼1.97
Media Library /wp-admin/upload.php1,392 ▲14.16 ▼0.1394.64 ▼1.5144.31 ▲1.69
Newsletter Settings /wp-admin/options-general.php?page=newsletter-sendy-settings8312.0324.3527.24

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 were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-sendy-newsletter/ajax-sendy-newsletter.php:31

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)
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: sendy, ajax, newsletter

ajax-sendy-newsletter/ajax-sendy-newsletter.php 77% from 13 tests

The primary PHP file in "Newsletter using Sendy" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.0")
  • Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin237 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.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
There were not PNG files found in your plugin