84% postmarkapp-email-integrator

Code Review | PostmarkApp Email Integrator

WordPress plugin PostmarkApp Email Integrator scored84%from 54 tests.

About plugin

  • Plugin page: postmarkapp-email...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: May 27, 2023
  • Number of updates: 19
  • Update frequency: every 167.3 days
  • Top authors: gagan0123 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /1,651 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.06MB] [CPU: ▼2.84ms] Passed 4 tests

Analyzing server-side resources used by PostmarkApp Email Integrator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.42 ▼2.53
Dashboard /wp-admin3.37 ▲0.0648.47 ▼6.42
Posts /wp-admin/edit.php3.42 ▲0.0647.04 ▼3.74
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.00 ▲4.17
Media Library /wp-admin/upload.php3.29 ▲0.0636.29 ▲1.33
Postmarkapp /wp-admin/options-general.php?page=pma_admin3.2633.20

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for PostmarkApp Email Integrator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.181.77 ▼0.0346.80 ▲0.47
Dashboard /wp-admin2,210 ▲224.84 ▼1.02101.94 ▼9.7245.86 ▼1.66
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.1035.38 ▼2.6333.44 ▲2.46
Add New Post /wp-admin/post-new.php1,550 ▲1718.27 ▼4.94630.72 ▼60.2874.22 ▲19.07
Media Library /wp-admin/upload.php1,392 ▲104.22 ▼0.0192.09 ▼12.8340.70 ▼4.78
Postmarkapp /wp-admin/options-general.php?page=pma_admin9342.0426.5832.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postmarkapp-email-integrator/postmarkapp.php:15

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: postmark, smtp, email, wildbit, notifications...

postmarkapp-email-integrator/postmarkapp.php 92% from 13 tests

This is the main PHP file of "PostmarkApp Email Integrator" version 2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("postmarkapp-email-integrator.php" instead of "postmarkapp.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
Everything looks great! No dangerous files found in this plugin361 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27842361

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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