83% email-marketing-services-integration

Code Review | Email Marketing Services Integration

WordPress plugin Email Marketing Services Integration scored 83% from 54 tests.

About plugin

  • Plugin page: email-marketing-s...
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 16, 2017
  • Latest release: Aug 7, 2023
  • Number of updates: 27
  • Update frequency: every 78.6 days
  • Top authors: lobov (55.56%)Wpcalc (48.15%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,413 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Email Marketing Services Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1146.02 ▲7.80
Dashboard /wp-admin3.42 ▲0.1150.53 ▲1.97
Posts /wp-admin/edit.php3.53 ▲0.1747.23 ▲4.17
Add New Post /wp-admin/post-new.php6.02 ▲0.1387.49 ▼2.31
Media Library /wp-admin/upload.php3.34 ▲0.1136.56 ▲3.73
Get More /wp-admin/admin.php?page=wow-company3.35257.55
EMS Integration /wp-admin/admin.php?page=email-marketing-services-integration3.3331.75

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

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

Browser metrics Passed 4 tests

Email Marketing Services Integration: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲13513.24 ▼1.131.73 ▲0.0539.88 ▼2.83
Dashboard /wp-admin2,273 ▲915.87 ▲0.9996.85 ▼8.8039.14 ▼1.69
Posts /wp-admin/edit.php2,159 ▲702.05 ▲0.0334.50 ▼3.8135.12 ▼1.60
Add New Post /wp-admin/post-new.php1,540 ▲717.70 ▼5.86687.32 ▲63.6976.78 ▲16.34
Media Library /wp-admin/upload.php1,462 ▲774.26 ▲0.08109.87 ▲9.5143.67 ▼0.72
Get More /wp-admin/admin.php?page=wow-company1,4521.8629.4758.66
EMS Integration /wp-admin/admin.php?page=email-marketing-services-integration1,0341.7325.5152.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/email-marketing-services-integration/services/aweber/aweber_entry.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/email-marketing-services-integration/services/aweber/aweber_collection.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'AWeberOAuthAdapter' not found in wp-content/plugins/email-marketing-services-integration/services/aweber/oauth_application.php:56
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberAPIBase' not found in wp-content/plugins/email-marketing-services-integration/services/aweber/aweber_response.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Integration), #2 (Email Services)
Please take inspiration from this readme.txt

email-marketing-services-integration/ems-integration.php 69% from 13 tests

The primary PHP file in "Email Marketing Services Integration" version 1.2.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/ems-integration")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("email-marketing-services-integration.php" instead of "ems-integration.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path should use only dashes and lowercase characters ("ems-integration")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin11,742 lines of code in 71 files:
LanguageFilesBlank linesComment linesLines of code
CSS410373,338
SVG1002,671
PHP364581,0782,135
Sass1434341,768
LESS1434441,758
JavaScript27072

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.59
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes27.41%
Methods149
▷ Static methods42.68%
▷ Public methods12583.89%
▷ Protected methods2114.09%
▷ Private methods32.01%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and 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
admin/partials/thankyou.png2.23KB1.88KB▼ 15.62%