90% melonpan-block-post-title

Code Review | Melonpan Block - Post Title

WordPress plugin Melonpan Block - Post Title scored90%from 54 tests.

About plugin

  • Plugin page: melonpan-block-po...
  • 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 28, 2019
  • Latest release: Jan 24, 2021
  • Number of updates: 11
  • Update frequency: every 46.8 days
  • Top authors: melonpan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /687 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.92ms] Passed 4 tests

Analyzing server-side resources used by Melonpan Block - Post Title
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.99 ▼3.93
Dashboard /wp-admin3.31 ▲0.0147.47 ▼2.05
Posts /wp-admin/edit.php3.36 ▲0.0047.12 ▼3.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.20 ▼6.15
Media Library /wp-admin/upload.php3.23 ▲0.0038.61 ▲1.51

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Melonpan Block - Post Title
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.18 ▼0.222.07 ▲0.4044.15 ▲2.58
Dashboard /wp-admin2,192 ▲185.70 ▲0.0282.38 ▼9.0840.55 ▲1.43
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0737.28 ▼1.2535.36 ▼1.58
Add New Post /wp-admin/post-new.php6,192 ▲4,66419.08 ▼4.18925.40 ▲245.5164.99 ▲6.66
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0598.31 ▼13.4542.68 ▼2.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Block in the editor)
The official readme.txt might help

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

The primary PHP file in "Melonpan Block - Post Title" version 2.0.0 is used by WordPress to initiate all plugin functionality
55 characters long description:
Block that displays the current Post Title and Excerpt.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin159 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32627157
CSS1001
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin