84% deliverability

Code Review | Deliverability

WordPress plugin Deliverability scored84%from 54 tests.

About plugin

  • Plugin page: deliverability
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Aug 22, 2022
  • Latest release: Nov 12, 2023
  • Number of updates: 73
  • Update frequency: every 6.9 days
  • Top authors: topdeliverability (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,205 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲3.87MB] [CPU: ▲19.23ms] Passed 4 tests

A check of server-side resources used by Deliverability
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /6.47 ▲3.0055.78 ▲12.26
Dashboard /wp-admin7.52 ▲4.1774.63 ▲15.14
Posts /wp-admin/edit.php7.57 ▲4.2182.92 ▲37.11
Add New Post /wp-admin/post-new.php10.04 ▲4.15123.11 ▲19.96
Media Library /wp-admin/upload.php7.39 ▲4.1661.86 ▲29.55
Deliverability Dashboard /wp-admin/admin.php?page=top-deliverability-dashboard7.75480.14
Settings /wp-admin/admin.php?page=top-deliverability-settings8.15423.79
About /wp-admin/admin.php?page=top-deliverability-about7.5358.55
/wp-admin/admin.php?page=top-deliverability-callback7.3652.96

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Deliverability
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9514.67 ▲0.531.66 ▼0.0230.26 ▼13.33
Dashboard /wp-admin2,247 ▲735.62 ▼0.0297.82 ▲9.6244.63 ▲5.26
Posts /wp-admin/edit.php2,153 ▲561.98 ▲0.0239.77 ▲3.4739.99 ▲7.23
Add New Post /wp-admin/post-new.php1,572 ▲4622.77 ▼0.32642.69 ▲29.5851.83 ▼6.42
Media Library /wp-admin/upload.php1,452 ▲554.17 ▼0.0196.01 ▼9.7745.65 ▲2.93
Deliverability Dashboard /wp-admin/admin.php?page=top-deliverability-dashboard1,3241.9956.3164.30
Settings /wp-admin/admin.php?page=top-deliverability-settings9932.1726.4936.94
About /wp-admin/admin.php?page=top-deliverability-about8992.0122.6033.75
/wp-admin/admin.php?page=top-deliverability-callback8042.0125.4426.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • top_deliverability_auth0_cookie_secret

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

SRP 50% 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
Please fix the following items
  • 451× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPMailer\\PHPMailer\\PHPMailer' not found in wp-content/plugins/deliverability/src/Email/PHPMailer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'TopDeliverabilityVendor\\Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/deliverability/vendor-prefixed/psr-4/Monolog/Handler/FlowdockHandler.php:32
    • > PHP Fatal error
      Uncaught Error: Interface 'TopDeliverabilityVendor\\Psr\\Http\\Message\\UriFactoryInterface' not found in wp-content/plugins/deliverability/vendor-prefixed/psr-4/League/Uri/HttpFactory.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'TopDeliverabilityVendor\\Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/deliverability/vendor-prefixed/psr-4/Twig/Extension/SandboxExtension.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'TopDeliverabilityVendor\\Monolog\\Handler\\HandlerInterface' not found in wp-content/plugins/deliverability/vendor-prefixed/psr-4/Monolog/Handler/HandlerWrapper.php:34
    • > PHP Fatal error
      Uncaught Error: Interface 'TopDeliverability\\FormHandler' not found in wp-content/plugins/deliverability/src/Settings/Widget/Signup/EmbeddedSignupFormHandler.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'TopDeliverabilityVendor\\Http\\Client\\Exception\\TransferException' not found in wp-content/plugins/deliverability/vendor-prefixed/psr-4/Http/Client/Exception/RequestException.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'TopDeliverability\\Api\\ApiClientError' not found in wp-content/plugins/deliverability/src/Api/ApiClientUnexpectedStatusError.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'TopDeliverabilityVendor\\Twig\ode\ode' not found in wp-content/plugins/deliverability/vendor-prefixed/psr-4/Twig/Node/SandboxNode.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'TopDeliverabilityVendor\\Psr\\Log\\LoggerInterface' not found in wp-content/plugins/deliverability/vendor-prefixed/psr-4/Monolog/Logger.php:34

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: dmarc, spf, email authentication, email, dkim...

deliverability/index.php 85% from 13 tests

The primary PHP file in "Deliverability" version 1.2.0 is used by WordPress to initiate all plugin functionality
Please take the time to 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
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("deliverability.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin63,978 lines of code in 822 files:
LanguageFilesBlank linesComment linesLines of code
PHP74811,90326,79051,409
PO File344,1144,38811,494
CSS5760433
Twig26400347
JavaScript5194196
JSON20082
Markdown28017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity9.28
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces105
Interfaces117
Traits12
Classes605
▷ Abstract classes264.30%
▷ Concrete classes57995.70%
▷ Final classes21537.13%
Methods4,097
▷ Static methods53413.03%
▷ Public methods3,41583.35%
▷ Protected methods2255.49%
▷ Private methods45711.15%
Functions334
▷ Named functions18455.09%
▷ Anonymous functions15044.91%
Constants467
▷ Global constants71.50%
▷ Class constants46098.50%
▷ Public constants34174.13%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin