10% reply-by-email

Code Review | Reply By Email

WordPress plugin Reply By Email scored10%from 54 tests.

About plugin

  • Plugin page: reply-by-email
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.5
  • WordPress version: 6.3.1
  • First release: Apr 7, 2016
  • Latest release: Apr 20, 2016
  • Number of updates: 6
  • Update frequency: every 2.5 days
  • Top authors: replypush (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /786 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Error in wp-content/plugins/reply-by-email/hooks/class-settings-hooks.php+8
    Uncaught Error: Call to a member function load_language() on null in wp-content/plugins/reply-by-email/hooks/class-settings-hooks.php:8
    Stack trace:
    #0 wp-content/plugins/reply-by-email/library/implicit-hooks/class-implicit-hooks.php(306): ReplyByEmailSettingsHooks->migrate__register__activate()
    #1 wp-content/plugins/reply-by-email/library/implicit-hooks/class-implicit-hooks.php(311): ImplicitHooks_v0_1_1b::plugin_state_action()
    #2 wp-includes/class-wp-hook.php(310): ImplicitHooks_v0_1_1b::activation()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/includes/plugin.php(693): do_action()

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

This is a short check of server-side resources used by Reply By Email
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.65 ▲1.34
Dashboard /wp-admin3.31 ▲0.0049.77 ▲0.43
Posts /wp-admin/edit.php3.36 ▲0.0047.37 ▲3.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.22 ▼6.78
Media Library /wp-admin/upload.php3.23 ▲0.0035.75 ▲0.09

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Reply By Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.51 ▼0.874.65 ▲2.8653.38 ▲9.83
Dashboard /wp-admin2,209 ▲184.86 ▼0.9999.24 ▼6.8438.90 ▼2.85
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0239.42 ▲2.8635.32 ▼0.73
Add New Post /wp-admin/post-new.php1,514 ▼023.56 ▲5.82647.29 ▼56.3273.17 ▲4.44
Media Library /wp-admin/upload.php1,382 ▼34.16 ▼0.0398.76 ▼20.5441.85 ▼3.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: reply, subscribe, replies, discussion, email...

reply-by-email/reply-by-email.php Passed 13 tests

"Reply By Email" version 0.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Reply to articles and comments by email

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
There were no executable files found in this plugin1,569 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP163472741,407
PO File14853162

PHP code Passed 2 tests

Analyzing 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.35
Average class complexity11.17
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes211.11%
▷ Concrete classes1688.89%
▷ Final classes00.00%
Methods121
▷ Static methods86.61%
▷ Public methods9477.69%
▷ Protected methods2722.31%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
design/images/smallicon.png0.62KB0.55KB▼ 10.32%