100% fix-forum-emails

Code Review | Fix Forum Emails

WordPress plugin Fix Forum Emails scored 100% from 54 tests.

About plugin

  • Plugin page: fix-forum-emails
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.8
  • WordPress version: 5.8.1
  • First release: Mar 21, 2016
  • Latest release: Jul 22, 2021
  • Number of updates: 23
  • Update frequency: every 84.7 days
  • Top authors: fliz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,389 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Fix Forum Emails
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0126.95 ▲5.42
Dashboard /wp-admin3.06 ▲0.0036.77 ▲0.31
Posts /wp-admin/edit.php3.12 ▲0.0132.06 ▲2.48
Add New Post /wp-admin/post-new.php5.43 ▼0.0169.50 ▼749.81
Media Library /wp-admin/upload.php3.01 ▲0.0122.31 ▼1.63

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Fix Forum Emails
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,691 ▲9015.96 ▲0.316.81 ▲1.9382.51 ▲8.57
Dashboard /wp-admin2,930 ▲316.11 ▼0.14120.96 ▼10.80165.76 ▼7.21
Posts /wp-admin/edit.php2,737 ▼63.23 ▼0.0064.23 ▼0.71137.55 ▲0.39
Add New Post /wp-admin/post-new.php3,917 ▲17518.70 ▲0.15438.37 ▲8.40156.25 ▼5.98
Media Library /wp-admin/upload.php1,755 ▼05.54 ▼0.01139.55 ▲0.81184.20 ▲0.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === fix-forum-emails === )
You can look at the official readme.txt

fix-forum-emails/fix-forum-emails.php Passed 13 tests

The primary PHP file in "Fix Forum Emails" version 1.0 is used by WordPress to initiate all plugin functionality
92 characters long description:
Fixes unwanted HTML entities in bbPress notification email subject lines and message bodies.

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
Good job! No executable or dangerous file extensions detected239 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3100159239

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.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
PNG images were not found in this plugin