83% techsarathy-sendy-cf7-integration

Code Review | Techsarathy Sendy CF7 Integration

WordPress plugin Techsarathy Sendy CF7 Integration scored 83% from 54 tests.

About plugin

  • Plugin page: techsarathy-sendy...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.5
  • WordPress version: 6.3.1
  • First release: Nov 10, 2015
  • Latest release: Jul 25, 2016
  • Number of updates: 54
  • Update frequency: every 4.8 days
  • Top authors: rktaiwala (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50+ active / 2,889 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.50ms] Passed 4 tests

A check of server-side resources used by Techsarathy Sendy CF7 Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1240.91 ▼7.45
Dashboard /wp-admin3.43 ▲0.1247.17 ▼6.70
Posts /wp-admin/edit.php3.54 ▲0.1851.15 ▼4.94
Add New Post /wp-admin/post-new.php6.01 ▲0.12100.70 ▼2.90
Media Library /wp-admin/upload.php3.35 ▲0.1238.06 ▲3.02
Sendy List /wp-admin/edit.php?post_type=tssendy3.3937.50
Add New /wp-admin/post-new.php?post_type=tssendy3.3844.70
Settings /wp-admin/edit.php?post_type=tssendy&page=ts_sendy_settings3.3230.61

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Techsarathy Sendy CF7 Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.32 ▼1.111.88 ▼0.2246.39 ▼0.40
Dashboard /wp-admin2,236 ▲455.94 ▲0.05111.35 ▲6.7883.74 ▲41.61
Posts /wp-admin/edit.php2,125 ▲331.99 ▼0.0638.01 ▼3.5234.10 ▼4.60
Add New Post /wp-admin/post-new.php1,549 ▲3523.03 ▲5.55701.96 ▲91.2650.69 ▼1.26
Media Library /wp-admin/upload.php1,421 ▲334.18 ▲0.0196.85 ▼4.1575.10 ▲31.21
Sendy List /wp-admin/edit.php?post_type=tssendy1,1272.4746.9271.07
Add New /wp-admin/post-new.php?post_type=tssendy1,5023.2557.3292.83
Settings /wp-admin/edit.php?post_type=tssendy&page=ts_sendy_settings9162.4334.5243.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/techsarathy-sendy-cf7-integration/classes/TsSendyPostType.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/techsarathy-sendy-cf7-integration/views/TsSendyShortcode/sendy.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'TsSendySettings' not found in wp-content/plugins/techsarathy-sendy-cf7-integration/views/TsSendySettings/general-settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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
9 plugin tags: contact form 7, sendy campaign, campaign, sendy email, sendy...

techsarathy-sendy-cf7-integration/tssendy.php 69% from 13 tests

"Techsarathy Sendy CF7 Integration" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("techsarathy-sendy-cf7-integration.php" instead of "tssendy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,578 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3393293970
SVG100769
PHP6149177542
CSS41449216
PO File1283081

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.25
▷ Minimum class complexity5.00
▷ Maximum class complexity23.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods2896.55%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/adminIcon.png0.39KB0.28KB▼ 26.58%