78% wwd-mailer

Code Review | WWD Mailer

WordPress plugin WWD Mailer scored 78% from 54 tests.

About plugin

  • Plugin page: wwd-mailer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Mar 4, 2018
  • Number of updates: 11
  • Update frequency: every 30.2 days
  • Top authors: wilburweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 555 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.01ms] Passed 4 tests

Analyzing server-side resources used by WWD Mailer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.05 ▼11.38
Dashboard /wp-admin3.39 ▲0.0844.71 ▼6.07
Posts /wp-admin/edit.php3.50 ▲0.1446.01 ▼0.83
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.79 ▼1.75
Media Library /wp-admin/upload.php3.31 ▲0.0836.66 ▲4.77

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WWD Mailer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14513.65 ▼0.494.96 ▲2.9040.34 ▼4.93
Dashboard /wp-admin2,222 ▲405.86 ▼0.0495.97 ▼7.0381.60 ▲33.17
Posts /wp-admin/edit.php2,108 ▲192.03 ▼0.0235.90 ▼6.8833.23 ▼3.24
Add New Post /wp-admin/post-new.php1,545 ▲3123.28 ▲5.71609.86 ▼52.7064.01 ▲10.51
Media Library /wp-admin/upload.php1,398 ▲134.20 ▼0.0199.08 ▼2.7482.87 ▲40.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wwd-mailer/public/partials/wwd-mailer-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wwd-mailer/admin/partials/wwd-mailer-admin-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wwd-mailer/admin/partials/wwd-mailer-admin-side-bar.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% 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:
  • Plugin Name: Please specify the plugin name on the first line ( === wwd-mailer === )
The official readme.txt is a good inspiration

wwd-mailer/wwd-mailer.php 92% from 13 tests

Analyzing the main PHP file in "WWD Mailer" version 1.0.0
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,395 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS21704947
PHP14223642386
JavaScript2302762

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.12
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon-big.png2.28KB2.20KB▼ 3.72%
admin/img/icon-large.png1.62KB1.40KB▼ 13.85%
assets/banner-772x250.png15.64KB5.43KB▼ 65.27%
admin/img/icon.png1.45KB0.83KB▼ 43.25%
assets/screenshot-1.png148.53KB60.48KB▼ 59.29%