84% wpminds-growth-blocks

Code Review | WPMinds Growth Blocks

WordPress plugin WPMinds Growth Blocks scored84%from 54 tests.

About plugin

  • Plugin page: wpminds-growth-bl...
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2023
  • Latest release: Nov 20, 2023
  • Number of updates: 20
  • Update frequency: every 13.8 days
  • Top authors: wpminds (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /341 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.66ms] Passed 4 tests

An overview of server-side resources used by WPMinds Growth Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.19 ▼3.41
Dashboard /wp-admin3.31 ▲0.0143.77 ▼3.88
Posts /wp-admin/edit.php3.37 ▲0.0146.46 ▼1.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.12 ▼13.89
Media Library /wp-admin/upload.php3.24 ▲0.0140.02 ▲5.10

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WPMinds Growth Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14613.83 ▼0.909.58 ▲7.8438.48 ▼5.38
Dashboard /wp-admin2,198 ▲245.59 ▼0.0795.33 ▲2.8341.55 ▼1.29
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0741.71 ▲3.9934.74 ▼3.08
Add New Post /wp-admin/post-new.php1,656 ▲13021.72 ▼1.68701.37 ▲27.8166.30 ▲14.77
Media Library /wp-admin/upload.php1,403 ▼04.17 ▼0.03102.74 ▲2.8543.22 ▼0.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpminds-growth-blocks/inc/customizer.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
9 plugin tags: blocks, page building, block enabled, wpminds, gutenberg blocks...

wpminds-growth-blocks/wpminds-growth-blocks.php Passed 13 tests

The main file in "WPMinds Growth Blocks" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
93 characters long description:
WPMinds Growth Blocks is a collection of page building blocks for the Gutenberg block editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin34,791 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JSON40028,057
JavaScript183253724,880
CSS21579871
Sass2370866
PHP31553117

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.55MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png222.51KB93.09KB▼ 58.16%
assets/screenshot-1.png73.32KB33.09KB▼ 54.87%
assets/icon-256x256.png6.66KB3.47KB▼ 47.86%
assets/screenshot-3.png73.13KB34.22KB▼ 53.21%
assets/screenshot-2.png115.98KB49.78KB▼ 57.08%