74% f13-email

Code Review | F13 Email

WordPress plugin F13 Email scored 74% from 54 tests.

About plugin

  • Plugin page: f13-email
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2021
  • Latest release: Jan 28, 2022
  • Number of updates: 5
  • Update frequency: every 17.4 days
  • Top authors: f13dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 336 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.47ms] Passed 4 tests

An overview of server-side resources used by F13 Email
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.52 ▼4.47
Dashboard /wp-admin3.33 ▲0.0243.66 ▼3.37
Posts /wp-admin/edit.php3.38 ▲0.0246.94 ▲1.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.07 ▼0.76
Media Library /wp-admin/upload.php3.25 ▲0.0232.81 ▼1.28
Plugins /wp-admin/admin.php?page=f13-settings3.31450.58
Email /wp-admin/admin.php?page=f13-email3.2832.60

Server storage [IO: ▲0.07MB] [DB: ▲0.08MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: 3 new tables, 6 new options
New tables
wp_f13_email_contact_form
wp_f13_email_logs
wp_f13_email_contact_form_fields
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for F13 Email
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲17113.75 ▼0.565.11 ▲3.5040.45 ▼2.51
Dashboard /wp-admin2,229 ▲415.15 ▼0.7398.06 ▼4.6839.47 ▼3.09
Posts /wp-admin/edit.php2,116 ▲272.24 ▲0.2737.42 ▲0.4635.06 ▲3.42
Add New Post /wp-admin/post-new.php1,547 ▲1223.40 ▲0.05642.41 ▼39.2137.17 ▼15.08
Media Library /wp-admin/upload.php1,414 ▲294.15 ▼0.08101.40 ▼3.0744.43 ▼2.91
Plugins /wp-admin/admin.php?page=f13-settings9311.8224.5423.77
Email /wp-admin/admin.php?page=f13-email8561.8223.7430.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_f13_email_contact_form
    • wp_f13_email_logs
    • wp_f13_email_contact_form_fields
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/f13-email/f13-email.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/f13-email/f13-email.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/f13-email/f13-email.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in f13-email/assets to your readme.txt
You can look at the official readme.txt

f13-email/f13-email.php Passed 13 tests

Analyzing the main PHP file in "F13 Email" version 1.0.2
76 characters long description:
Use SMTP for sending emails, store email logs and build custom contact forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,324 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13227271,158
JavaScript2240116
CSS20050

PHP code Passed 2 tests

Analyzing 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.25
Average class complexity12.85
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods53
▷ Static methods23.77%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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