84% wpmandrill-multisite

Code Review | wpMandrill Multisite

WordPress plugin wpMandrill Multisite scored84%from 54 tests.

About plugin

  • Plugin page: wpmandrill-multisite
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Feb 18, 2015
  • Latest release: Apr 11, 2016
  • Number of updates: 12
  • Update frequency: every 34.8 days
  • Top authors: tyxla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,090 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.93ms] Passed 4 tests

An overview of server-side resources used by wpMandrill Multisite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0031.39 ▼10.65
Dashboard /wp-admin3.31 ▼0.0444.70 ▼17.83
Posts /wp-admin/edit.php3.36 ▲0.0044.90 ▼2.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.33 ▼9.02
Media Library /wp-admin/upload.php3.23 ▲0.0034.83 ▼0.50

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by wpMandrill Multisite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.091.84 ▼0.0038.73 ▼4.29
Dashboard /wp-admin2,203 ▲155.84 ▼0.0298.76 ▼18.6239.07 ▼2.41
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0537.83 ▲2.1431.52 ▼7.52
Add New Post /wp-admin/post-new.php1,543 ▲2918.49 ▲0.83595.76 ▼12.2261.65 ▲7.84
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0394.34 ▼5.9242.86 ▲0.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmandrill-multisite/wpmandrill-multisite.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: wpmandrill, multisite, mail, wp_mail, propagate...

wpmandrill-multisite/wpmandrill-multisite.php Passed 13 tests

The principal PHP file in "wpMandrill Multisite" v. 1.0.3 is loaded by WordPress automatically on each request
139 characters long description:
Automatically propagates the wpMandrill settings from the main site to all subsites, still allowing each subsite to manually override them.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1154534
Markdown119024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin