84% with-melty-support

Code Review | With Melty Support

WordPress plugin With Melty Support scored84%from 54 tests.

About plugin

  • Plugin page: with-melty-support
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2013
  • Latest release: Jul 19, 2013
  • Number of updates: 22
  • Update frequency: every 0.2 days
  • Top authors: f-reach (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /701 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
Installer ran successfully

Server metrics [RAM: ▼0.58MB] [CPU: ▼24.13ms] Passed 4 tests

A check of server-side resources used by With Melty Support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1843.46 ▼2.01
Dashboard /wp-admin3.35 ▲0.0431.87 ▼14.98
Posts /wp-admin/edit.php3.42 ▲0.0638.00 ▼15.15
Add New Post /wp-admin/post-new.php3.33 ▼2.5639.45 ▼59.15
Media Library /wp-admin/upload.php3.35 ▲0.1228.66 ▼7.24

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for With Melty Support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.79 ▼0.821.73 ▼0.1742.67 ▲0.23
Dashboard /wp-admin2,329 ▲1415.05 ▲0.14107.43 ▼19.4140.15 ▼1.19
Posts /wp-admin/edit.php2,118 ▲262.26 ▲0.2440.94 ▼3.4331.73 ▼6.97
Add New Post /wp-admin/post-new.php6,301 ▲4,77321.75 ▼1.43860.48 ▲178.1038.92 ▼14.82
Media Library /wp-admin/upload.php1,414 ▲324.37 ▲0.12103.83 ▲3.9743.67 ▲1.97

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/with-melty-support/includes/control/control.php:101
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/with-melty-support/includes/wms-hook.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/with-melty-support/admin/php/admin-post.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/with-melty-support/includes/wms-box.php:93
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/with-melty-support/with-melty-support.php on line 17
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/with-melty-support/with-melty-support.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Image in the dashboard. All posts tab.), #2 (Image in the dashboard. Control tab.), #3 (Image in the edit page of post. Custom fields tab.)
The official readme.txt might help

with-melty-support/with-melty-support.php Passed 13 tests

The entry point to "With Melty Support" version 1.0.1 is a PHP file that has certain tags in its header comment area
80 characters long description:
Support WordPress and You. Make list of All posts, Support to use Custom fields.

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 detected2,494 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP132982151,414
JavaScript6154122885
CSS4512149
HTML20046

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions49
▷ Named functions49100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.95KB12.82KB▼ 48.62%
screenshot-3.png39.74KB19.58KB▼ 50.73%
screenshot-2.png28.76KB14.17KB▼ 50.73%