84% mu-plugins-tool

Code Review | MU Plugins Tool

WordPress plugin MU Plugins Tool scored84%from 54 tests.

About plugin

  • Plugin page: mu-plugins-tool
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2012
  • Latest release: Jan 26, 2013
  • Number of updates: 8
  • Update frequency: every 4.3 days
  • Top authors: AKTed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,022 total downloads

Benchmarks

Plugin footprint 82% 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: ▼4.08ms] Passed 4 tests

Server-side resources used by MU Plugins Tool
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.71 ▲1.73
Dashboard /wp-admin3.32 ▲0.0243.61 ▼4.84
Posts /wp-admin/edit.php3.37 ▲0.0144.66 ▼1.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.53 ▼9.08
Media Library /wp-admin/upload.php3.24 ▲0.0133.97 ▼1.38
MU Plugins Tool /wp-admin/plugins.php?page=mu-plugins-tool3.2429.89

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • There were 1 file (0.23KB) illegally modified outside of "wp-content/plugins/mu-plugins-tool/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/admin_footer_quote.php.OFF
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by MU Plugins Tool
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.101.80 ▲0.1943.40 ▲3.85
Dashboard /wp-admin2,210 ▲214.84 ▼0.29108.89 ▲1.6941.33 ▼1.35
Posts /wp-admin/edit.php2,096 ▲102.00 ▼0.0740.91 ▲6.4732.72 ▲0.62
Add New Post /wp-admin/post-new.php1,537 ▲2323.31 ▲5.72639.30 ▼11.3764.47 ▲20.95
Media Library /wp-admin/upload.php1,395 ▲104.17 ▼0.0394.45 ▼5.5944.21 ▲1.68
MU Plugins Tool /wp-admin/plugins.php?page=mu-plugins-tool8201.6824.1033.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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 items
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant MPT_MENU_SLUG - assumed 'MPT_MENU_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/mu-plugins-tool/page.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mu-plugins-tool/defines.php:24
    • > PHP Warning
      Use of undefined constant MPT_TITLE - assumed 'MPT_TITLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/mu-plugins-tool/page.php on line 2
    • > PHP Warning
      Use of undefined constant MPT_PARENT_SLUG - assumed 'MPT_PARENT_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/mu-plugins-tool/page.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/mu-plugins-tool/page.php:10
    • > PHP Warning
      Use of undefined constant MPT_MENU_PARENT - assumed 'MPT_MENU_PARENT' (this will throw an Error in a future version of PHP) in wp-content/plugins/mu-plugins-tool/functions.php on line 142
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mu-plugins-tool/defines.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: deactivate, mu, wordpress, activate, must-use...

mu-plugins-tool/mu-plugins-tool.php Passed 13 tests

The primary PHP file in "MU Plugins Tool" version 0.2.0 is used by WordPress to initiate all plugin functionality
108 characters long description:
Activate or deactivate any MU (must-use) plugins that are installed - on an individual basis or all at once.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected328 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP410299235
CSS116076
JavaScript18817

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.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
No PNG images were found in this plugin