66% mwuse

Code Review | MWuse - Adobe Muse Converter

WordPress plugin MWuse - Adobe Muse Converter scored66%from 54 tests.

About plugin

  • Plugin page: mwuse
  • Plugin version: 1.2.17006
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.5
  • WordPress version: 6.3.1
  • First release: Sep 20, 2017
  • Latest release: May 23, 2018
  • Number of updates: 48
  • Update frequency: every 5.2 days
  • Top authors: mwuse (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /28,849 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.06MB] [CPU: ▲96.89ms] Passed 4 tests

This is a short check of server-side resources used by MWuse - Adobe Muse Converter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2537.07 ▼3.88
Dashboard /wp-admin4.04 ▲0.69209.04 ▲141.49
Posts /wp-admin/edit.php4.04 ▲0.68202.46 ▲154.56
Add New Post /wp-admin/post-new.php4.03 ▼1.85198.04 ▲95.38
Media Library /wp-admin/upload.php4.03 ▲0.81329.15 ▲292.93
Settings /wp-admin/admin.php?page=muse-to-wordpress-setting4.04202.63
Plugins /wp-admin/admin.php?page=mtw-plugin-manager4.04201.64
Upload /wp-admin/admin.php?page=mtw-upload4.04200.19

Server storage [IO: ▲10.50MB] [DB: ▲0.01MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • Illegal file modification found: 2 files (0.52KB) outside of "wp-content/plugins/mwuse/" and "wp-content/uploads/"
    • (new file) mtw-codes/readme.txt
    • (new file) mtw-themes/readme.txt
Filesystem: 464 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
MTW_plugins_requier
db_upgraded
widget_recent-posts
can_compress_scripts
mtw_templates_mt
mtw_option

Browser metrics Passed 4 tests

MWuse - Adobe Muse Converter: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,083 ▲33714.80 ▲0.424.55 ▲2.6738.87 ▼1.83
Dashboard /wp-admin2,422 ▲2346.61 ▲1.74130.11 ▲16.1142.55 ▼2.42
Posts /wp-admin/edit.php2,325 ▲2363.48 ▲1.4448.99 ▲13.7332.60 ▼1.31
Add New Post /wp-admin/post-new.php1,738 ▲21022.49 ▲4.14651.84 ▲13.2839.34 ▼17.45
Media Library /wp-admin/upload.php1,467 ▲794.37 ▲0.1690.59 ▼15.8551.37 ▲5.93
Settings /wp-admin/admin.php?page=muse-to-wordpress-setting1,1603.5859.7561.98
Plugins /wp-admin/admin.php?page=mtw-plugin-manager1,0743.2141.2968.27
Upload /wp-admin/admin.php?page=mtw-upload1,0853.3942.3773.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • MTW_plugins_requier
    • mtw_option
    • widget_recent-comments
    • mtw_templates_mt

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mtw-upload
    • > Notice in wp-content/plugins/mwuse/functions/sync-page.php+175
    Undefined offset: 0
    • > GET request to /wp-admin/admin.php?page=muse-to-wordpress-setting
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/mwuse/functions/ajax-current-tab.php+9
    Undefined index: current_tab
    • > GET request to /wp-admin/admin.php?page=muse-to-wordpress-setting
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/mwuse/functions/ajax-current-tab.php+9
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=mtw-upload
    • > Notice in wp-content/plugins/mwuse/settings/settings.php+128
    Undefined index: image

SRP 0% 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 take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mwuse/inc/Mobile-Detect-2.8.15/tests/UA_List.inc.php
    • > /wp-content/plugins/mwuse/index.php
    • > /wp-content/plugins/mwuse/inc/Mobile-Detect-2.8.15/tests/providers/vendors/Allview.php
  • 29× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mwuse/addons/mtw-grid-list/mtw-grid-list.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mwuse/settings/pages-linker.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mwuse/extend/hero-shortcodes.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'MusePage' not found in wp-content/plugins/mwuse/default-template-5.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mwuse/class/pagetemplater.php:153
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mwuse/functions/init.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mwuse/extend/thumbnail.php:100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mwuse/extend/muse-preview.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mwuse/functions/require-plugins.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mwuse/mwuse.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mtw-upload
    • > Network (severe)
    wp-content/plugins/mwuse/settings/media-lib-uploader.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in mwuse/assets to your readme.txt
Please take inspiration from this readme.txt

mwuse/mwuse.php Passed 13 tests

"MWuse - Adobe Muse Converter" version 1.2.17006's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Design your WordPress theme easily in Adobe Muse. Get the best of the both.

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
No dangerous file extensions were detected93,150 lines of code in 386 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript564,6382,68128,721
CSS3548549918,022
HTML1161,45753716,761
JSON100013,865
PHP701,6261,2908,240
LESS711,1731,5405,582
YAML96422722
Markdown62360620
SVG503351
Python1404140
XML26044
Pug20438
Ruby24030
Bourne Shell10114

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity32.89
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods111
▷ Static methods1311.71%
▷ Public methods10090.09%
▷ Protected methods21.80%
▷ Private methods98.11%
Functions124
▷ Named functions124100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants535.71%
▷ Class constants964.29%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/zip-one-project.png5.65KB3.39KB▼ 39.96%
images/zip-2-projects.png7.05KB3.49KB▼ 50.54%
functions/images/no-image.png15.64KB8.68KB▼ 44.50%
mtw-script/bootstrap-3.3.5/docs/assets/img/sass-less.png14.25KB15.98KB0.00%
functions/images/delete.png0.44KB0.26KB▼ 40.80%