90% melonpan-block-container

Code Review | Melonpan Block - Container

WordPress plugin Melonpan Block - Container scored90%from 54 tests.

About plugin

  • Plugin page: melonpan-block-co...
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3
  • WordPress version: 6.3.1
  • First release: Jan 7, 2019
  • Latest release: Jan 9, 2021
  • Number of updates: 26
  • Update frequency: every 28.2 days
  • Top authors: melonpan (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /11,459 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Melonpan Block - Container
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.37 ▼1.95
Dashboard /wp-admin3.31 ▲0.0045.69 ▲0.30
Posts /wp-admin/edit.php3.36 ▲0.0045.97 ▼6.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.55 ▼6.56
Media Library /wp-admin/upload.php3.23 ▲0.0033.05 ▲0.30

Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Melonpan Block - Container
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.37 ▼0.944.32 ▲2.5743.99 ▼5.09
Dashboard /wp-admin2,206 ▲154.85 ▼0.01107.53 ▼6.5439.42 ▼4.32
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0440.25 ▼0.0934.76 ▼1.25
Add New Post /wp-admin/post-new.php6,243 ▲4,71919.60 ▼3.50834.09 ▲221.5253.29 ▼5.55
Media Library /wp-admin/upload.php1,382 ▼04.16 ▼0.0695.79 ▼4.0540.60 ▲0.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: container, innerblocks, gutenberg, blocks, editor

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

"Melonpan Block - Container" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Container block with settings, that can have other blocks nested.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin52 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP162049
CSS2002
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin