89% wp-block-pack

Code Review | Block Collection for You – WP Block Pack

WordPress plugin Block Collection for You – WP Block Pack scored89%from 54 tests.

About plugin

  • Plugin page: wp-block-pack
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2019
  • Latest release: Jul 20, 2022
  • Number of updates: 25
  • Update frequency: every 50.4 days
  • Top authors: falcontheme (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /3,373 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.73ms] Passed 4 tests

An overview of server-side resources used by Block Collection for You – WP Block Pack
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.13 ▼2.21
Dashboard /wp-admin3.33 ▼0.0145.20 ▼11.90
Posts /wp-admin/edit.php3.38 ▲0.0346.92 ▼2.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.35 ▼14.05
Media Library /wp-admin/upload.php3.25 ▲0.0332.98 ▼0.56
WP Block Pack /wp-admin/options-general.php?page=wp-block-pack3.2231.76

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

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

Browser metrics Passed 4 tests

Block Collection for You – WP Block Pack: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲12413.77 ▼0.845.17 ▲3.5837.31 ▼5.72
Dashboard /wp-admin2,213 ▲254.86 ▼0.03108.29 ▲3.7843.47 ▲2.89
Posts /wp-admin/edit.php2,096 ▲71.97 ▼0.0739.50 ▲1.3734.19 ▲2.93
Add New Post /wp-admin/post-new.php6,200 ▲4,68619.06 ▲1.57870.95 ▲180.8937.02 ▼17.36
Media Library /wp-admin/upload.php1,395 ▲164.25 ▲0.0196.95 ▼4.6042.29 ▼5.67
WP Block Pack /wp-admin/options-general.php?page=wp-block-pack1,6511.7325.5347.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

wp-block-pack/wp-block-pack.php Passed 13 tests

The main PHP file in "Block Collection for You – WP Block Pack" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
A pack of clean, useful and, customizable blocks for the new WordPress block editor (Gutenberg).

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected12,729 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript195501647,620
CSS19149603,822
PHP102693391,250
SVG10037

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity26.62
▷ Minimum class complexity3.00
▷ Maximum class complexity125.00
Average method complexity5.66
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes675.00%
Methods44
▷ Static methods613.64%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icons/wpblockicons/favicon.png0.16KB0.12KB▼ 24.40%
assets/icons/wpblockicons/favicon-pro.png0.13KB0.11KB▼ 14.81%