90% postmark-open-to-edd-customer-note

Code Review | Postmark Open to EDD Customer Note

WordPress plugin Postmark Open to EDD Customer Note scored 90% from 54 tests.

About plugin

  • Plugin page: postmark-open-to-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.9.0
  • WordPress version: 6.3.1
  • First release: Aug 30, 2017
  • Latest release: Feb 10, 2022
  • Number of updates: 5
  • Update frequency: every 325.0 days
  • Top authors: jchristopher (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 689 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.15MB] [CPU: ▼14.83ms] Passed 4 tests

This is a short check of server-side resources used by Postmark Open to EDD Customer Note
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.71 ▲1.26
Dashboard /wp-admin3.21 ▼0.0931.59 ▼15.57
Posts /wp-admin/edit.php3.28 ▼0.0836.47 ▼14.35
Add New Post /wp-admin/post-new.php5.45 ▼0.4375.94 ▼22.70
Media Library /wp-admin/upload.php3.22 ▼0.0126.81 ▼6.70

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Postmark Open to EDD Customer Note
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.62 ▼0.571.90 ▲0.1043.85 ▼0.94
Dashboard /wp-admin2,203 ▲155.84 ▲0.9494.47 ▼8.1138.76 ▼6.18
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0136.28 ▼6.2032.35 ▼2.59
Add New Post /wp-admin/post-new.php1,542 ▲618.36 ▼4.81625.27 ▼56.7052.38 ▼1.07
Media Library /wp-admin/upload.php1,382 ▼64.24 ▲0.0297.03 ▼8.6740.86 ▼7.16

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: note, customer, edd, open, postmark...

postmark-open-to-edd-customer-note/postmark-open-to-edd-customer-note.php Passed 13 tests

The entry point to "Postmark Open to EDD Customer Note" version 1.0.0 is a PHP file that has certain tags in its header comment area
86 characters long description:
Add a Customer Note when a Postmark-delivered email has been opened by an EDD Customer

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 plugin87 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2324181
Markdown1506

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin