10% gna-change-mail-sender

Code Review | GNA Change Mail Sender

WordPress plugin GNA Change Mail Sender scored10%from 54 tests.

About plugin

  • Plugin page: gna-change-mail-s...
  • Plugin version: 0.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: Apr 12, 2017
  • Number of updates: 20
  • Update frequency: every 19.6 days
  • Top authors: chris_dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,424 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_ChangeMailSender::activate_handler() should not be called statically

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.06ms] Passed 4 tests

An overview of server-side resources used by GNA Change Mail Sender
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.62 ▲3.87
Dashboard /wp-admin3.35 ▲0.0552.79 ▲2.51
Posts /wp-admin/edit.php3.46 ▲0.1151.49 ▲2.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.10 ▼17.07
Media Library /wp-admin/upload.php3.27 ▲0.0443.00 ▲7.56

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for GNA Change Mail Sender
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.71 ▼0.692.33 ▲0.1143.76 ▲3.31
Dashboard /wp-admin2,206 ▲215.88 ▼0.01112.41 ▼1.5875.06 ▲30.58
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0839.21 ▼3.0135.82 ▼1.18
Add New Post /wp-admin/post-new.php1,536 ▲1721.02 ▼2.24696.50 ▲81.4162.47 ▲8.12
Media Library /wp-admin/upload.php1,403 ▲154.18 ▼0.02113.39 ▲5.2077.62 ▲32.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_ChangeMailSender::deactivate_handler() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GNA_ChangeMailSender_Admin_Menu' not found in wp-content/plugins/gna-change-mail-sender/admin/gna-change-mail-sender-admin-settings-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gna-change-mail-sender/inc/gna-change-mail-sender-config.php:13

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

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid url: "none"
You can take inspiration from this readme.txt

gna-change-mail-sender/gna-change-mail-sender.php Passed 13 tests

"GNA Change Mail Sender" version 0.9.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Easy to change WordPress default mail sender name and email address

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin319 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP66436319

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods46
▷ Static methods48.70%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/gna_20x20.png2.98KB0.33KB▼ 88.89%