79% mailsignmanager

Code Review | MailSign Manager

WordPress plugin MailSign Manager scored79%from 54 tests.

About plugin

  • Plugin page: mailsignmanager
  • Plugin version: 0.81
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2016
  • Latest release: Sep 29, 2016
  • Number of updates: 10
  • Update frequency: every 0.2 days
  • Top authors: sgendrot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by MailSign Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0348.47 ▲0.35
Dashboard /wp-admin3.36 ▲0.0654.70 ▲2.81
Posts /wp-admin/edit.php3.48 ▲0.1251.52 ▼1.86
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.52 ▼22.12
Media Library /wp-admin/upload.php3.27 ▲0.0441.24 ▲5.53

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for MailSign Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲18814.52 ▲0.171.75 ▼0.1743.50 ▼0.77
Dashboard /wp-admin2,355 ▲1816.15 ▲0.50105.77 ▲5.5238.93 ▼2.84
Posts /wp-admin/edit.php2,280 ▲1773.33 ▲1.3149.43 ▲7.3733.11 ▼4.66
Add New Post /wp-admin/post-new.php1,546 ▲1823.57 ▲0.49629.01 ▼21.1936.86 ▼16.41
Media Library /wp-admin/upload.php1,427 ▲304.12 ▼0.0680.46 ▼19.7642.76 ▼2.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mailsignmanager/MailSignManager-ShowSign.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailsignmanager/mailsignmanager.php:36
    • > PHP Warning
      Use of undefined constant MailSignManager_PLUGIN_DIR - assumed 'MailSignManager_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailsignmanager/MailSignManager-admin-panel.php on line 39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mailsignmanager/MailSignManager-admin-panel.php:119
    • > PHP Warning
      Use of undefined constant MailSignManager_PLUGIN_DIR - assumed 'MailSignManager_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailsignmanager/MailSignManager-admin-panel.php on line 69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailsignmanager/MailSignManager_Global.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: mail signature, mail

mailsignmanager/mailsignmanager.php Passed 13 tests

The main PHP script in "MailSign Manager" version 0.81 is automatically included on every request by WordPress
27 characters long description:
A manager of mail signature

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected415 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5132195276
JavaScript1383478
JSON20053
CSS1498

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/facebook.png0.64KB0.47KB▼ 26.22%
img/linkedin.png0.62KB0.51KB▼ 16.51%
img/delete.png2.62KB2.01KB▼ 23.39%
img/wordpress.png0.96KB0.70KB▼ 26.69%
img/googleplus.png0.87KB0.76KB▼ 11.74%