90% wp-mautic

Code Review | WP Mautic

WordPress plugin WP Mautic scored90%from 54 tests.

About plugin

  • Plugin page: wp-mautic
  • Plugin version: 2.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2015
  • Latest release: Feb 9, 2023
  • Number of updates: 81
  • Update frequency: every 35.9 days
  • Top authors: shulard (86.42%)mautic (14.81%)

Code review

54 tests

User reviews

8 reviews

Install metrics

10,000+ active /107,076 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.45ms] Passed 4 tests

This is a short check of server-side resources used by WP Mautic
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.77 ▼4.01
Dashboard /wp-admin3.39 ▲0.0855.85 ▼2.75
Posts /wp-admin/edit.php3.50 ▲0.1458.54 ▲4.01
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.00 ▼7.04
Media Library /wp-admin/upload.php3.31 ▲0.0843.74 ▲7.67
WPMautic /wp-admin/options-general.php?page=wpmautic3.2837.23

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Mautic
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.24 ▼0.471.61 ▼0.3141.32 ▲0.02
Dashboard /wp-admin2,196 ▲195.61 ▼0.0388.59 ▼13.6543.36 ▲0.92
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0639.26 ▲2.4337.11 ▲2.55
Add New Post /wp-admin/post-new.php1,531 ▲523.17 ▼0.03690.66 ▲66.9853.61 ▼2.48
Media Library /wp-admin/upload.php1,407 ▲74.15 ▼0.0299.45 ▲0.1042.96 ▲0.38
WPMautic /wp-admin/options-general.php?page=wpmautic9542.0322.9928.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: marketing, automation

wp-mautic/wpmautic.php 92% from 13 tests

The principal PHP file in "WP Mautic" v. 2.4.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-mautic.php" instead of "wpmautic.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
No dangerous file extensions were detected513 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP475181513

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin