84% melonpan-block-site-title

Code Review | Melonpan Block - Site Title

WordPress plugin Melonpan Block - Site Title scored84%from 54 tests.

About plugin

  • Plugin page: melonpan-block-si...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.6
  • WordPress version: 6.3.1
  • First release: Aug 29, 2019
  • Latest release: Jan 24, 2021
  • Number of updates: 13
  • Update frequency: every 39.5 days
  • Top authors: melonpan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /686 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.23ms] Passed 4 tests

This is a short check of server-side resources used by Melonpan Block - Site Title
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0345.91 ▲4.40
Dashboard /wp-admin3.37 ▲0.0352.61 ▼4.26
Posts /wp-admin/edit.php3.42 ▲0.0354.37 ▲6.17
Add New Post /wp-admin/post-new.php5.97 ▲0.0497.51 ▲4.31
Media Library /wp-admin/upload.php3.30 ▲0.0237.03 ▼3.55

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Melonpan Block - Site Title
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.041.77 ▲0.0443.33 ▼2.75
Dashboard /wp-admin2,195 ▲215.49 ▼0.1586.74 ▼12.0739.67 ▼1.46
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0639.84 ▲2.7835.38 ▲1.43
Add New Post /wp-admin/post-new.php6,208 ▲4,67121.14 ▲3.02869.87 ▲214.9968.73 ▼13.08
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.04100.62 ▼13.6142.73 ▼5.37

Uninstaller [IO: ▲0.00MB] [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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/melonpan-block-site-title/inc/register-rest.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: title, site-info, gutenberg, block-editor, block...

melonpan-block-site-title/melonpan-block-site-title.php Passed 13 tests

The principal PHP file in "Melonpan Block - Site Title" v. 2.0.0 is loaded by WordPress automatically on each request
50 characters long description:
Block that displays the Site Title and Description

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 plugin184 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43135182
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin