89% demoify-blocks

Code Review | Demoify Blocks - Gutenberg Page Builder

WordPress plugin Demoify Blocks - Gutenberg Page Builder scored89%from 54 tests.

About plugin

  • Plugin page: demoify-blocks
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.0
  • WordPress version: 6.3.1
  • First release: Nov 21, 2018
  • Latest release: Dec 8, 2018
  • Number of updates: 13
  • Update frequency: every 1.3 days
  • Top authors: bhatt_sandeep (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼17.37ms] Passed 4 tests

Server-side resources used by Demoify Blocks - Gutenberg Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.30 ▼6.37
Dashboard /wp-admin3.32 ▲0.0143.15 ▼4.74
Posts /wp-admin/edit.php3.37 ▲0.0145.52 ▼6.63
Add New Post /wp-admin/post-new.php4.81 ▼1.0846.77 ▼51.73
Media Library /wp-admin/upload.php3.24 ▲0.0134.79 ▲1.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Demoify Blocks - Gutenberg Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.27 ▼1.066.78 ▲4.7438.43 ▼4.11
Dashboard /wp-admin2,203 ▲355.81 ▼0.20108.39 ▲4.2739.85 ▼0.93
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0139.90 ▼4.4735.73 ▼0.85
Add New Post /wp-admin/post-new.php6,365 ▲4,85124.19 ▲6.79840.52 ▲120.3239.08 ▼19.75
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0594.56 ▼6.5141.30 ▼3.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Looking good! No server-side errors or output 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 on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #3, #4, #5 in demoify-blocks/assets to your readme.txt
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

demoify-blocks/plugin.php 85% from 13 tests

The main PHP file in "Demoify Blocks - Gutenberg Page Builder" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 275 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("demoify-blocks.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin5,535 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript212773594,403
Sass251607960
PHP2355761
JSON10056
CSS30039
Markdown18016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues 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
Namespaces0
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 functions266.67%
▷ Anonymous functions133.33%
Constants5
▷ Global constants5100.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 were not PNG files found in your plugin