73% pocketgecko-email

Code Review | PocketGecko Email

WordPress plugin PocketGecko Email scored 73% from 54 tests.

About plugin

  • Plugin page: pocketgecko-email
  • Plugin version: 1.0.0
  • PHP compatiblity: +
  • PHP version: 7.4.16
  • WordPress compatibility: -5.7
  • WordPress version: 5.9.2
  • First release: Apr 1, 2021
  • Latest release: Apr 1, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: axiomattik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 143 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼289.10ms] Passed 4 tests

Server-side resources used by PocketGecko Email
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0859.27 ▲9.84
Dashboard /wp-admin3.53 ▲0.1237.40 ▲3.35
Posts /wp-admin/edit.php3.76 ▲0.1151.43 ▲7.51
Add New Post /wp-admin/post-new.php6.99 ▲0.02105.56 ▼1,165.03
Media Library /wp-admin/upload.php3.42 ▲0.1225.98 ▼2.24
Email /wp-admin/options-general.php?page=pgem_settings_menu3.3827.11

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
pgem_smtp_encryption_type
pgem_smtp_username
pgem_smtp_host
pgem_smtp_port
pgem_smtp_password
pgem_smtp_authentication
pgem_smtp_from_email
pgem_smtp_from_name

Browser metrics Passed 4 tests

An overview of browser requirements for PocketGecko Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,810 ▲5615.90 ▲0.236.14 ▼0.032.88 ▼0.19
Dashboard /wp-admin2,902 ▲446.16 ▲0.03122.76 ▼10.19158.12 ▼5.27
Posts /wp-admin/edit.php2,701 ▲73.23 ▼0.0069.15 ▲3.88147.50 ▼1.90
Add New Post /wp-admin/post-new.php1,669 ▼8316.43 ▼4.60420.31 ▼31.86153.77 ▼94.95
Media Library /wp-admin/upload.php1,708 ▲105.54 ▼0.01141.08 ▼6.72193.26 ▼8.58
Email /wp-admin/options-general.php?page=pgem_settings_menu1,3572.4455.13138.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5768
    wpdb::prepare was called incorrectly. Unsupported value type (object). Please see Debugging in WordPress for more information. (This message was added in version 4.8.2.)
  • Zombie WordPress options were found after uninstall: 8 options
    • pgem_smtp_from_email
    • pgem_smtp_port
    • pgem_smtp_encryption_type
    • pgem_smtp_password
    • pgem_smtp_username
    • pgem_smtp_host
    • pgem_smtp_authentication
    • pgem_smtp_from_name

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/pocketgecko-email/includes/templates/email-form.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pocketgecko-email/includes/email.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pocketgecko-email/includes/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pocketgecko-email/pocketgecko-email-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pocketgecko-email/includes/templates/email-form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pocketgecko-email/includes/templates/email-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pocketgecko-email/includes/templates/email-test.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pocketgecko-email/includes/scripts.php:3

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 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: settings, post, ajax, options, email...

pocketgecko-email/pocketgecko-email.php 77% from 13 tests

"PocketGecko Email" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/i18n/languages")
  • Requires PHP: Required version number formatted incorrectly (ex. "7.0" instead of "")
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin568 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1017164567
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions28
▷ Named functions2589.29%
▷ Anonymous functions310.71%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin