74% wp-mail-manager

Code Review | WP Mailing Status

WordPress plugin WP Mailing Status scored 74% from 54 tests.

About plugin

  • Plugin page: wp-mail-manager
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2020
  • Latest release: Jan 27, 2023
  • Number of updates: 21
  • Update frequency: every 38.7 days
  • Top authors: belovdigital (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 946 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▼5.13ms] Passed 4 tests

Analyzing server-side resources used by WP Mailing Status
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.53 ▲1.0753.53 ▲10.05
Dashboard /wp-admin4.35 ▲1.0558.40 ▲5.30
Posts /wp-admin/edit.php4.47 ▲1.1163.93 ▲16.92
Add New Post /wp-admin/post-new.php4.22 ▼1.6748.80 ▼52.77
Media Library /wp-admin/upload.php4.28 ▲1.0455.78 ▲23.08
Scheduled Actions /wp-admin/tools.php?page=action-scheduler4.4356.12

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 167 new files
Database: 4 new tables, 13 new options
New tables
wp_actionscheduler_logs
wp_actionscheduler_actions
wp_actionscheduler_groups
wp_actionscheduler_claims
New WordPress options
theysaidso_admin_options
db_upgraded
schema-ActionScheduler_StoreSchema
widget_theysaidso_widget
schema-ActionScheduler_LoggerSchema
action_scheduler_hybrid_store_demarkation
bda_mail_is_mail_exists
widget_recent-posts
bda_mail_is_smtp_enabled
bda_mail_is_mail_working
...

Browser metrics Passed 4 tests

A check of browser resources used by WP Mailing Status
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,185 ▲45015.13 ▲0.909.33 ▲7.5436.45 ▼7.64
Dashboard /wp-admin2,389 ▲2015.75 ▲0.84118.15 ▲3.1280.36 ▲31.38
Posts /wp-admin/edit.php2,278 ▲1892.87 ▲0.8142.05 ▼0.7535.85 ▼1.16
Add New Post /wp-admin/post-new.php1,756 ▲24223.79 ▲6.30788.66 ▲150.5837.72 ▼13.71
Media Library /wp-admin/upload.php1,680 ▲2925.15 ▲0.96121.58 ▲22.4548.92 ▲4.53
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,4272.4933.7133.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables were found after uninstall: 4 tables
    • wp_actionscheduler_groups
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
  • This plugin does not fully uninstall, leaving 10 options in the database
    • schema-ActionScheduler_StoreSchema
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • action_scheduler_lock_async-request-runner
    • action_scheduler_hybrid_store_demarkation
    • widget_recent-comments
    • db_upgraded
    • schema-ActionScheduler_LoggerSchema

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 74× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      require(wp-content/tests/phpunit/includes/bootstrap.php): failed to open stream: No such file or directory in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/tests/bootstrap.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/tests/phpunit/migration/ActionMigrator_Test.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/tests/phpunit/migration/Scheduler_Test.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/tests/phpunit/schedules/ActionScheduler_SimpleSchedule_Test.php:7
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/tests/phpunit/includes/bootstrap.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/tests/bootstrap.php on line 24
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/tests/phpunit/procedural_api/wc_get_scheduled_actions_Test.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/wp-mail-manager/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:10

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: server settings, php, smtp, mail

wp-mail-manager/wp-mail-manager.php 92% from 13 tests

"WP Mailing Status" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected11,721 lines of code in 158 files:
LanguageFilesBlank linesComment linesLines of code
PHP1192,2474,6178,359
JSON6002,269
Markdown103490602
JavaScript72140122
XML37386
CSS225156
YAML4141056
HTML38053
SVG20051
Sass110047
Bourne Shell110820

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.20
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces3
Interfaces3
Traits0
Classes106
▷ Abstract classes1514.15%
▷ Concrete classes9185.85%
▷ Final classes00.00%
Methods744
▷ Static methods648.60%
▷ Public methods58979.17%
▷ Protected methods13518.15%
▷ Private methods202.69%
Functions33
▷ Named functions2163.64%
▷ Anonymous functions1236.36%
Constants50
▷ Global constants1836.00%
▷ Class constants3264.00%
▷ Public constants32100.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libraries/action-scheduler/docs/android-chrome-256x256.png2.93KB3.03KB0.00%
libraries/action-scheduler/docs/favicon-16x16.png0.39KB0.38KB▼ 3.02%
libraries/action-scheduler/docs/apple-touch-icon.png6.77KB2.46KB▼ 63.68%
libraries/action-scheduler/docs/android-chrome-192x192.png6.77KB2.46KB▼ 63.68%
libraries/action-scheduler/docs/mstile-150x150.png4.15KB3.67KB▼ 11.47%