90% melonpan-block-code

Code Review | Melonpan Block - Code

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

About plugin

  • Plugin page: melonpan-block-code
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.6
  • WordPress version: 6.3.1
  • First release: Aug 2, 2019
  • Latest release: Mar 2, 2021
  • Number of updates: 21
  • Update frequency: every 27.5 days
  • Top authors: melonpan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,436 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
Install script ran successfully

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

This is a short check of server-side resources used by Melonpan Block - Code
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.95 ▼3.87
Dashboard /wp-admin3.36 ▲0.0646.59 ▼6.36
Posts /wp-admin/edit.php3.41 ▲0.0645.24 ▼1.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.80 ▼20.17
Media Library /wp-admin/upload.php3.29 ▲0.0637.95 ▲3.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Melonpan Block - Code
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.34 ▲0.071.71 ▲0.0440.47 ▼1.19
Dashboard /wp-admin2,195 ▲185.49 ▼0.2081.52 ▼6.9738.85 ▼0.80
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0233.92 ▼3.4634.53 ▼7.66
Add New Post /wp-admin/post-new.php6,196 ▲4,67020.22 ▼2.95952.66 ▲264.7963.52 ▲11.30
Media Library /wp-admin/upload.php1,394 ▼64.18 ▼0.03100.64 ▼9.4845.14 ▼1.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: syntax-highlighting, prism, block, gutenberg, code...

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

The main PHP script in "Melonpan Block - Code" version 2.0.3 is automatically included on every request by WordPress
85 characters long description:
Block to display code, with highlighted syntax, which can be copied to the clipboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,045 lines of code in 222 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript183036723
PHP74871290
CSS320032

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
There are no PNG files in this plugin