90% mail-switcher-for-developer

Code Review | Mail Switcher For Developer

WordPress plugin Mail Switcher For Developer scored 90% from 54 tests.

About plugin

  • Plugin page: mail-switcher-for...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.2
  • WordPress version: 6.3.1
  • First release: Dec 4, 2018
  • Latest release: Jul 25, 2019
  • Number of updates: 8
  • Update frequency: every 29.1 days
  • Top authors: pressmaninc (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) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Mail Switcher For Developer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.31 ▼8.45
Dashboard /wp-admin3.35 ▲0.0544.54 ▼3.61
Posts /wp-admin/edit.php3.46 ▲0.1148.99 ▼7.93
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.69 ▼9.87
Media Library /wp-admin/upload.php3.27 ▲0.0435.70 ▲4.36
Mail Switcher For Developer /wp-admin/options-general.php?page=mail-switcher-for-developer3.2439.72

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
msfd_mail_addresses
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Mail Switcher For Developer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4714.41 ▲0.121.64 ▼0.5040.42 ▼0.48
Dashboard /wp-admin2,224 ▲364.88 ▼0.95114.67 ▲0.9943.43 ▼3.90
Posts /wp-admin/edit.php2,107 ▲182.05 ▼0.0135.92 ▼4.5434.81 ▼2.11
Add New Post /wp-admin/post-new.php1,524 ▼1117.46 ▼5.79698.05 ▲96.9961.05 ▲7.98
Media Library /wp-admin/upload.php1,406 ▲214.24 ▲0.0394.46 ▼5.6141.31 ▼2.56
Mail Switcher For Developer /wp-admin/options-general.php?page=mail-switcher-for-developer8072.0526.9828.48

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 96% from 29 tests

readme.txt Passed 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
4 plugin tags: pressman, developer, mail, e-mail

mail-switcher-for-developer/mail-switcher-for-developer.php 92% from 13 tests

"Mail Switcher For Developer" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin184 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34399176
CSS1118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.50
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected