62% wp-enterprise-launch-deploy

Code Review | WP Enterprise Launch Deploy

WordPress plugin WP Enterprise Launch Deploy scored62%from 54 tests.

About plugin

  • Plugin page: wp-enterprise-lau...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2014
  • Latest release: Apr 1, 2014
  • Number of updates: 3
  • Update frequency: every 11.0 days
  • Top authors: kasigi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /840 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.83MB] [CPU: ▼47.32ms] Passed 4 tests

An overview of server-side resources used by WP Enterprise Launch Deploy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.12 ▼31.29
Dashboard /wp-admin2.21 ▼1.106.73 ▼38.54
Posts /wp-admin/edit.php2.21 ▼1.156.86 ▼40.03
Add New Post /wp-admin/post-new.php2.21 ▼3.687.17 ▼79.43
Media Library /wp-admin/upload.php2.21 ▼1.025.91 ▼27.78
Deploy Commands /wp-admin/admin.php?page=weld_deploy_options2.216.04
Server Settings /wp-admin/admin.php?page=weld_server_options2.216.71
Status Override /wp-admin/admin.php?page=status_override2.217.50
Enterprise Deployment /wp-admin/tools.php?page=weld-settings2.226.27
Help /wp-admin/admin.php?page=weld_help2.217.73
Logs /wp-admin/admin.php?page=weld_logs2.216.90

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Enterprise Launch Deploy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.42 ▼0.121.69 ▲0.0242.80 ▲0.73
Dashboard /wp-admin2,203 ▲265.54 ▼0.1083.39 ▼4.3945.63 ▲3.34
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0734.80 ▼1.8335.18 ▼2.31
Add New Post /wp-admin/post-new.php1,533 ▲723.18 ▲0.16685.35 ▲75.2258.60 ▲10.46
Media Library /wp-admin/upload.php1,408 ▲54.21 ▼0.1096.41 ▼2.4043.80 ▲1.60
Deploy Commands /wp-admin/admin.php?page=weld_deploy_options7181.149.4321.70
Server Settings /wp-admin/admin.php?page=weld_server_options7181.537.7720.27
Status Override /wp-admin/admin.php?page=status_override7181.148.8817.85
Enterprise Deployment /wp-admin/tools.php?page=weld-settings7191.538.1017.35
Help /wp-admin/admin.php?page=weld_help7181.539.2520.47
Logs /wp-admin/admin.php?page=weld_logs7181.148.2516.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wp-enterprise-launch-deploy/weld.php+113
    include_once(wp-content/plugins/wp-enterprise-launch-deploy/WELD_key.php): failed to open stream: Permission denied
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • WELD_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=weld_logs
    • > Warning in wp-content/plugins/wp-enterprise-launch-deploy/weld.php+113
    include_once(wp-content/plugins/wp-enterprise-launch-deploy/WELD_key.php): failed to open stream: Permission denied
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=weld_logs
    • > Warning in wp-content/plugins/wp-enterprise-launch-deploy/weld.php+113
    include_once(): Failed opening 'wp-content/plugins/wp-enterprise-launch-deploy/WELD_key.php' for inclusion (include_path='.:/usr/share/php')
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=weld_logs
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=weld_logs
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=weld_logs
    • > Error in wp-content/plugins/wp-enterprise-launch-deploy/admin/WELD_admin_deploy.php+8
    Uncaught Error: Call to undefined function weld_get_key() in wp-content/plugins/wp-enterprise-launch-deploy/admin/WELD_admin_deploy.php:8
    Stack trace:
    #0 wp-content/plugins/wp-enterprise-launch-deploy/admin/WELD_admin.php(289): WELD_settings_deploy()
    #1 wp-includes/class-wp-hook.php(310): WELD_settings()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown
    • > GET request to /wp-admin/tools.php?page=weld-settings
    • > Error in wp-content/plugins/wp-enterprise-launch-deploy/admin/WELD_admin_deploy.php+8
    Uncaught Error: Call to undefined function weld_get_key() in wp-content/plugins/wp-enterprise-launch-deploy/admin/WELD_admin_deploy.php:8
    Stack trace:
    #0 wp-content/plugins/wp-enterprise-launch-deploy/admin/WELD_admin.php(289): WELD_settings_deploy()
    #1 wp-includes/class-wp-hook.php(310): WELD_settings()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 wp-admin/tools.php(40): require_once('/var/www/wordpr...')
    #6 {main}
    thrown

SRP 50% from 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
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Unknown: Failed opening required 'wp-content/plugins/wp-enterprise-launch-deploy/WELD_key.php' (include_path='.:/usr/share/php') in Unknown on line 0
    • > PHP Warning
      Unknown: failed to open stream: Permission denied in Unknown on line 0
    • > PHP Fatal error
      Uncaught Error: Call to undefined function weld_get_key() in wp-content/plugins/wp-enterprise-launch-deploy/weld-cron/WELD_cron_processor.php:26

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=weld_logs
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: \"undefined\" is not valid JSON" "SyntaxError: \"undefined\" is not valid JSON\n at parse (\u003Canonymous>)\n at Function.\u003Canonymous> (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:5:3161)\n at e.\u003Ccomputed> [as parseJSON] (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:5:1582)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-enterprise-launch-deploy/admin/WELD-admin.js?ver=6.3.1:11:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=weld_logs
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 4:3160 Uncaught SyntaxError: "undefined" is not valid JSON

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
8 plugin tags: migrate, install, live server, export, import...

wp-enterprise-launch-deploy/weld.php 92% from 13 tests

The main PHP file in "WP Enterprise Launch Deploy" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-enterprise-launch-deploy.php" instead of "weld.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,608 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP167693102,230
JavaScript111817312
CSS117166

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Code structure

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/red.png3.32KB2.30KB▼ 30.62%
admin/green.png3.32KB2.30KB▼ 30.71%
admin/yellow.png3.32KB2.31KB▼ 30.53%