84% su-wp-email

Code Review | Su WP Email

WordPress plugin Su WP Email scored84%from 54 tests.

About plugin

  • Plugin page: su-wp-email
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Mar 6, 2017
  • Latest release: Mar 6, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: susonwaiba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /584 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.76ms] Passed 4 tests

This is a short check of server-side resources used by Su WP Email
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.37 ▲0.34
Dashboard /wp-admin3.33 ▲0.0248.12 ▼4.98
Posts /wp-admin/edit.php3.38 ▲0.0248.60 ▼2.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.00 ▼20.15
Media Library /wp-admin/upload.php3.25 ▲0.0241.36 ▲4.91
Su WP Email /wp-admin/options-general.php?page=su-wp-email3.2130.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Su WP Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▲0.071.82 ▲0.2448.81 ▲5.03
Dashboard /wp-admin2,202 ▲345.63 ▲0.0188.57 ▲1.1140.56 ▼5.52
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0133.86 ▼5.4437.23 ▼1.55
Add New Post /wp-admin/post-new.php1,529 ▲323.54 ▼0.11691.71 ▲65.9053.05 ▲5.23
Media Library /wp-admin/upload.php1,404 ▲44.26 ▲0.09111.22 ▲2.9648.66 ▲2.17
Su WP Email /wp-admin/options-general.php?page=su-wp-email8952.0023.3328.53

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/su-wp-email/su-wp-email.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === su-wp-email === )
You can look at the official readme.txt

su-wp-email/su-wp-email.php Passed 13 tests

The main file in "Su WP Email" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Just a plugin which will change default wordpress@domain.com to anything you wish.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11722104

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin