10% formidable-email-shortcodes

Code Review | Formidable Email Shortcodes

WordPress plugin Formidable Email Shortcodes scored10%from 54 tests.

About plugin

  • Plugin page: formidable-email-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Nov 16, 2013
  • Latest release: Apr 28, 2014
  • Number of updates: 18
  • Update frequency: every 9.1 days
  • Top authors: thomstark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,089 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/formidable-email-shortcodes/formidable-email-shortcodes.php+29
    array_key_exists() expects parameter 2 to be array, bool given

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.45ms] Passed 4 tests

Server-side resources used by Formidable Email Shortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.12 ▼6.06
Dashboard /wp-admin3.31 ▼0.0349.27 ▼14.53
Posts /wp-admin/edit.php3.37 ▲0.0149.89 ▼1.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.31 ▼15.98
Media Library /wp-admin/upload.php3.24 ▲0.0138.96 ▲0.49
Email Shortcodes /wp-admin/options-general.php?page=formidable-email-shortcodes3.1032.25

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
ssfrm_notify_version
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Formidable Email Shortcodes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▲0.001.83 ▼0.1143.87 ▼1.55
Dashboard /wp-admin2,199 ▲225.61 ▲0.0792.80 ▼9.0638.33 ▼5.34
Posts /wp-admin/edit.php2,101 ▲12.08 ▲0.1435.64 ▼1.3033.22 ▼4.06
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▲0.12663.00 ▼14.0356.99 ▼7.79
Media Library /wp-admin/upload.php1,407 ▲74.17 ▲0.0697.69 ▼16.5746.19 ▼0.35
Email Shortcodes /wp-admin/options-general.php?page=formidable-email-shortcodes9811.7326.4939.40

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • ssfrm_notify_version
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=formidable-email-shortcodes
    • > Notice in wp-content/plugins/formidable-email-shortcodes/formidable-email-shortcodes.php+48
    Trying to access array offset on value of type bool
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=formidable-email-shortcodes
    • > Warning in wp-content/plugins/formidable-email-shortcodes/admin.php+52
    count(): Parameter must be an array or an object that implements Countable

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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/formidable-email-shortcodes/formidable-email-shortcodes.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/formidable-email-shortcodes/admin.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

formidable-email-shortcodes/formidable-email-shortcodes.php 92% from 13 tests

The main file in "Formidable Email Shortcodes" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,413 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS21230513
JavaScript264230425
SVG200263
PHP21720212

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity4.00
▷ Minimum method complexity4.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
9 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/trash.png3.49KB1.11KB▼ 68.33%
images/bbc_banner.png20.49KB6.69KB▼ 67.37%
images/eyesonly_banner.png23.35KB7.93KB▼ 66.04%
images/other_plugins.png5.47KB1.69KB▼ 69.16%
images/unlock.png4.11KB1.17KB▼ 71.62%