90% melonpan-block-images

Code Review | Melonpan Block - Images

WordPress plugin Melonpan Block - Images scored 90% from 54 tests.

About plugin

  • Plugin page: melonpan-block-im...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3
  • WordPress version: 6.3.1
  • First release: Jun 3, 2019
  • Latest release: Dec 6, 2019
  • Number of updates: 12
  • Update frequency: every 15.6 days
  • Top authors: melonpan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 658 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.57ms] Passed 4 tests

A check of server-side resources used by Melonpan Block - Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0150.14 ▼13.36
Dashboard /wp-admin3.32 ▲0.0147.16 ▼2.61
Posts /wp-admin/edit.php3.37 ▲0.0167.71 ▲15.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.38 ▲1.62
Media Library /wp-admin/upload.php3.24 ▲0.0137.57 ▲0.07

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Melonpan Block - Images: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▼914.48 ▼0.261.63 ▼0.7542.89 ▼1.69
Dashboard /wp-admin2,206 ▼04.86 ▲0.01113.34 ▲4.0744.02 ▲2.13
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0540.14 ▲0.9933.91 ▼0.90
Add New Post /wp-admin/post-new.php6,415 ▲4,88220.79 ▼2.36941.93 ▲338.9960.49 ▼1.40
Media Library /wp-admin/upload.php1,391 ▲34.27 ▲0.0597.61 ▼0.4341.08 ▼3.76

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: images, carousel, slider, editor, blocks...

melonpan-block-images/melonpan-block-images.php Passed 13 tests

The primary PHP file in "Melonpan Block - Images" version 1.1.0 is used by WordPress to initiate all plugin functionality
53 characters long description:
Add a gallery of images in a simple but clean layout.

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
There were no executable files found in this plugin49 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP182046
CSS2002
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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
Namespaces1
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin