89% wp-default-sender-email-by-it-pixelz

Code Review | Wp Default Sender Email by IT Pixelz

WordPress plugin Wp Default Sender Email by IT Pixelz scored 89% from 54 tests.

About plugin

  • Plugin page: wp-default-sender...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Apr 9, 2023
  • Number of updates: 29
  • Update frequency: every 98.4 days
  • Top authors: itpixelz (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active / 8,520 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.55MB] [CPU: ▲0.50ms] Passed 4 tests

This is a short check of server-side resources used by Wp Default Sender Email by IT Pixelz
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.6040.51 ▼1.65
Dashboard /wp-admin3.91 ▲0.6051.12 ▼1.83
Posts /wp-admin/edit.php3.96 ▲0.6047.43 ▲2.11
Add New Post /wp-admin/post-new.php6.43 ▲0.5489.91 ▲3.36
Media Library /wp-admin/upload.php3.67 ▲0.4445.72 ▲12.75
WP Default Mail /wp-admin/options-general.php?page=wp-default-sender-email-itpixelz3.9052.41
Freemius Debug [v.2.5.6] /wp-admin/admin.php?page=freemius4.0338.70

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 191 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
fs_accounts
fs_debug_mode
widget_theysaidso_widget
fs_active_plugins

Browser metrics Passed 4 tests

Wp Default Sender Email by IT Pixelz: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.62 ▼0.761.68 ▼0.0734.99 ▼9.50
Dashboard /wp-admin2,233 ▲455.86 ▲0.82102.43 ▼13.0242.62 ▼4.57
Posts /wp-admin/edit.php2,110 ▲212.02 ▲0.0238.53 ▲0.9836.93 ▲4.58
Add New Post /wp-admin/post-new.php1,524 ▼1223.58 ▲0.50670.43 ▲20.3050.67 ▼4.29
Media Library /wp-admin/upload.php1,415 ▲274.21 ▼0.00106.63 ▲8.9946.85 ▲1.12
WP Default Mail /wp-admin/options-general.php?page=wp-default-sender-email-itpixelz9771.6927.8863.08
Freemius Debug [v.2.5.6] /wp-admin/admin.php?page=freemius1,0712.0523.5128.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • fs_debug_mode
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • fs_accounts
    • fs_active_plugins
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: sender email, default sender name, outgoing mail, wp default sender email, default mail...

wp-default-sender-email-by-it-pixelz/wp-default-sender-email-itpixelz.php 85% from 13 tests

The entry point to "Wp Default Sender Email by IT Pixelz" version 2.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-default-sender-email-by-it-pixelz.php" instead of "wp-default-sender-email-itpixelz.php")
  • Description: The description should be shorter than 140 characters (currently 144 characters long)

Code Analysis 97% from 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
There were no executable files found in this plugin33,538 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
PHP1258,07217,56333,099
Markdown1680214
JavaScript33459194
CSS144031

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity83.09
▷ Minimum class complexity1.00
▷ Maximum class complexity3,079.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes00.00%
Methods1,290
▷ Static methods19915.43%
▷ Public methods89669.46%
▷ Protected methods171.32%
▷ Private methods37729.22%
Functions95
▷ Named functions95100.00%
▷ Anonymous functions00.00%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/wp-default-sender-email-by-it-pixelz.png16.37KB6.21KB▼ 62.06%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%