78% mission-control

Code Review | Mission Control

WordPress plugin Mission Control scored78%from 54 tests.

About plugin

  • Plugin page: mission-control
  • Plugin version: 0.1-alpha...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Sep 1, 2016
  • Latest release: Sep 1, 2016
  • Number of updates: 6
  • Update frequency: every 1.7 days
  • Top authors: rheinardkorf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.42MB] [CPU: ▼15.65ms] Passed 4 tests

A check of server-side resources used by Mission Control
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2342.36 ▼5.53
Dashboard /wp-admin3.56 ▲0.2551.88 ▼1.73
Posts /wp-admin/edit.php3.67 ▲0.3152.70 ▲1.05
Add New Post /wp-admin/post-new.php3.49 ▼2.4045.23 ▼56.38
Media Library /wp-admin/upload.php3.48 ▲0.2540.95 ▲1.64
Edit Site Level /wp-admin/options.php?page=missioncontrol_edit_site_level3.4834.33

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Mission Control
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼1.134.46 ▲2.4246.41 ▲0.18
Dashboard /wp-admin2,206 ▲155.85 ▲0.95100.55 ▼10.5440.75 ▲0.81
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0137.96 ▲0.7335.16 ▲1.66
Add New Post /wp-admin/post-new.php45 ▼1,3660.44 ▼17.420.07 ▼630.4110.33 ▼37.22
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.01109.41 ▼7.1559.59 ▲8.08
Edit Site Level /wp-admin/options.php?page=missioncontrol_edit_site_level6881.7720.1017.40

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
    • db_upgraded
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MissionControl\\API\\Object' not found in wp-content/plugins/mission-control/lib/api/class-levels.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'MissionControl\\Base' not found in wp-content/plugins/mission-control/lib/class-plugin.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'MissionControl\\Extension' not found in wp-content/plugins/mission-control/lib/extension/class-theme-control.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'MissionControl\\Extension' not found in wp-content/plugins/mission-control/lib/extension/class-plugin-control.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'MissionControl\\Base' not found in wp-content/plugins/mission-control/lib/module/class-levels.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'MissionControl\\Extension' not found in wp-content/plugins/mission-control/lib/extension/class-level-message.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/mission-control/mission-control.php:211
    • > PHP Fatal error
      Cannot use 'Object' as class name as it is reserved in wp-content/plugins/mission-control/lib/api/class-object.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'MissionControl\\Base' not found in wp-content/plugins/mission-control/lib/class-extension.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'MissionControl\\Base' not found in wp-content/plugins/mission-control/lib/module/class-extensions.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options.php?page=missioncontrol_edit_site_level
    • > Javascript (severe) in unknown
    /wp-admin/options.php?page=missioncontrol_edit_site_level 1:5 Uncaught ReferenceError: jQuery is not defined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: feature manager, multisite, plugin control, levels, network...

mission-control/mission-control.php 77% from 13 tests

This is the main PHP file of "Mission Control" version 0.1-alpha..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "0.1-alpha...")

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 plugin2,712 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP166121,3802,030
JavaScript7181123492
CSS6247160
SVG50130

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity20.50
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods145
▷ Static methods2215.17%
▷ Public methods14096.55%
▷ Protected methods00.00%
▷ Private methods53.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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