90% newsletter-for-sendcloud

Code Review | Newsletter for sendcloud

WordPress plugin Newsletter for sendcloud scored90%from 54 tests.

About plugin

  • Plugin page: newsletter-for-se...
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Nov 22, 2022
  • Latest release: Dec 7, 2022
  • Number of updates: 4
  • Update frequency: every 3.8 days
  • Top authors: shopeo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /180 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.97ms] Passed 4 tests

Analyzing server-side resources used by Newsletter for sendcloud
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.30 ▼0.04
Dashboard /wp-admin3.38 ▲0.0745.47 ▼8.37
Posts /wp-admin/edit.php3.50 ▲0.1445.33 ▼5.13
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.10 ▼10.32
Media Library /wp-admin/upload.php3.31 ▲0.0738.68 ▲4.60
Newsletter for Sendcloud /wp-admin/options-general.php?page=options_newsletter_for_sendcloud3.2731.59

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_subscribe_widget
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Newsletter for sendcloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.85 ▲0.501.67 ▼0.1542.60 ▲1.42
Dashboard /wp-admin2,210 ▲255.80 ▲0.0095.08 ▼4.2839.60 ▼1.04
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0139.87 ▲4.2933.84 ▲0.29
Add New Post /wp-admin/post-new.php1,517 ▼1617.61 ▼5.61682.28 ▲0.2159.89 ▼1.80
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0395.54 ▼15.8140.80 ▼6.44
Newsletter for Sendcloud /wp-admin/options-general.php?page=options_newsletter_for_sendcloud8312.1722.7527.62

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_subscribe_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 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 SRP test was a success

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: The official readme.txt might help

newsletter-for-sendcloud/newsletter-for-sendcloud.php Passed 13 tests

The primary PHP file in "Newsletter for sendcloud" version 0.0.3 is used by WordPress to initiate all plugin functionality
104 characters long description:
The integrated sendcloud.net newsletter management system provides the latest news and mailing channels.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin377 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP76214316
PO File1202561

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity3.29
▷ Minimum method complexity2.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants3
▷ Global constants3100.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
No PNG files were detected