72% email-keep

Code Review | Email Keep

WordPress plugin Email Keep scored 72% from 54 tests.

About plugin

  • Plugin page: email-keep
  • Plugin version: 1.1
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.4
  • WordPress version: 5.8.1
  • First release: Feb 9, 2018
  • Latest release: Feb 10, 2018
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: intricateweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,020 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼177.26ms] Passed 4 tests

This is a short check of server-side resources used by Email Keep
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1943.78 ▲17.92
Dashboard /wp-admin3.14 ▲0.0951.46 ▼12.45
Posts /wp-admin/edit.php3.26 ▲0.1552.90 ▼2.95
Add New Post /wp-admin/post-new.php5.50 ▲0.07106.99 ▼697.56
Media Library /wp-admin/upload.php3.09 ▲0.0942.21 ▲3.93
Email Keep /wp-admin/options-general.php?page=email-keep3.0334.66

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: 1 new table, 1 new option
New tables
wp_email_keep
New WordPress options
email_keep_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Email Keep
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,736 ▲15415.95 ▲0.3314.93 ▲4.3353.23 ▲8.35
Dashboard /wp-admin3,000 ▲696.12 ▼0.10161.32 ▼5.98117.96 ▼4.14
Posts /wp-admin/edit.php2,772 ▲332.72 ▲0.0175.26 ▲3.73104.16 ▲3.79
Add New Post /wp-admin/post-new.php1,708 ▲2515.65 ▼0.66454.74 ▼18.91122.57 ▼3.60
Media Library /wp-admin/upload.php1,840 ▲335.03 ▲0.01188.11 ▲17.32131.38 ▲3.89
Email Keep /wp-admin/options-general.php?page=email-keep1,1882.4873.7276.54

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 tables detected upon uninstall: 1 table
    • wp_email_keep

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=email-keep
    • > Notice in wp-content/plugins/email-keep/admin/class-admin.php+50
    Undefined index: subject-keywords

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/email-keep/admin/partials/header.php
    • > /wp-content/plugins/email-keep/admin/partials/read.php
    • > /wp-content/plugins/email-keep/admin/partials/inbox.php
  • 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: email in wp-content/plugins/email-keep/admin/partials/read.php on line 7
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/email-keep/admin/partials/inbox.php on line 10
    • > PHP Notice
      Undefined variable: email in wp-content/plugins/email-keep/admin/partials/read.php on line 8
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/email-keep/admin/partials/inbox.php on line 6
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/email-keep/admin/partials/inbox.php on line 24
    • > PHP Notice
      Undefined variable: counts in wp-content/plugins/email-keep/admin/partials/inbox.php on line 6
    • > PHP Notice
      Undefined variable: counts in wp-content/plugins/email-keep/admin/partials/inbox.php on line 5
    • > PHP Notice
      Trying to get property 'from' of non-object in wp-content/plugins/email-keep/admin/partials/read.php on line 6
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/email-keep/admin/partials/inbox.php on line 5
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/email-keep/admin/partials/inbox.php on line 43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image not found
The official readme.txt is a good inspiration

email-keep/email-keep.php 92% from 13 tests

The main file in "Email Keep" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin634 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1385129487
CSS103105
JavaScript161642

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods1860.00%
▷ Protected methods00.00%
▷ Private methods1240.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png112.22KB26.35KB▼ 76.51%