84% wp-reroute-mandrill

Code Review | WP Reroute Mandrill

WordPress plugin WP Reroute Mandrill scored84%from 54 tests.

About plugin

  • Plugin page: wp-reroute-mandrill
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2015
  • Latest release: Nov 7, 2015
  • Number of updates: 10
  • Update frequency: every 12.1 days
  • Top authors: rexak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by WP Reroute Mandrill
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.16 ▼5.97
Dashboard /wp-admin3.33 ▼0.0244.57 ▼13.53
Posts /wp-admin/edit.php3.38 ▲0.0245.27 ▼2.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.80 ▼19.40
Media Library /wp-admin/upload.php3.25 ▲0.0234.02 ▲1.82
WP ReRoute Mandrill /wp-admin/options-general.php?page=rexak_wp_reroute_mandrill3.1929.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Reroute Mandrill
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.22 ▼1.341.98 ▼0.3043.29 ▼3.24
Dashboard /wp-admin2,213 ▲255.86 ▲0.9195.32 ▼16.3237.73 ▼7.28
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0533.14 ▼7.3436.30 ▼0.17
Add New Post /wp-admin/post-new.php1,517 ▲317.54 ▼0.03659.76 ▼32.1757.60 ▼7.12
Media Library /wp-admin/upload.php1,395 ▲74.30 ▲0.1395.75 ▼6.6742.61 ▲0.32
WP ReRoute Mandrill /wp-admin/options-general.php?page=rexak_wp_reroute_mandrill7872.0324.1128.20

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rexak_wp_reroute_mandrill
    • > Notice in wp-content/plugins/wp-reroute-mandrill/wp-re-route-mandrill.php+89
    Trying to access array offset on value of type bool

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: reroute, development, mandrill, wpmandrill, rex

wp-reroute-mandrill/wp-re-route-mandrill.php 92% from 13 tests

The entry point to "WP Reroute Mandrill" version 0.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-reroute-mandrill.php" instead of "wp-re-route-mandrill.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
Success! There were no dangerous files found in this plugin109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15423109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin