78% find-my-blocks

Code Review | Find My Blocks

WordPress plugin Find My Blocks scored78%from 54 tests.

About plugin

  • Plugin page: find-my-blocks
  • Plugin version: v3.5.5...
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 8, 2019
  • Latest release: Sep 9, 2023
  • Number of updates: 44
  • Update frequency: every 31.3 days
  • Top authors: edeesims (100%)

Code review

54 tests

User reviews

35 reviews

Install metrics

3,000+ active /51,577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼6.17MB] [CPU: ▼1,256,323.85ms] Passed 4 tests

An overview of server-side resources used by Find My Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▼24.7740.99 ▼5,025,267.66
Dashboard /wp-admin3.39 ▲0.0053.41 ▼15.51
Posts /wp-admin/edit.php3.51 ▲0.1054.80 ▲1.70
Add New Post /wp-admin/post-new.php5.98 ▲0.0591.66 ▼13.53
Media Library /wp-admin/upload.php3.31 ▲0.0437.05 ▲1.30
Find My Blocks /wp-admin/tools.php?page=find-my-blocks3.3140.92

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Find My Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.73 ▲0.331.67 ▼0.0340.77 ▼3.56
Dashboard /wp-admin2,211 ▲315.62 ▼0.0484.15 ▼11.0145.07 ▼0.09
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0840.30 ▲3.7642.26 ▲6.59
Add New Post /wp-admin/post-new.php1,547 ▲1918.40 ▼4.83610.24 ▼69.7366.04 ▲12.93
Media Library /wp-admin/upload.php1,410 ▲74.23 ▲0.00100.38 ▼9.6045.12 ▲1.31
Find My Blocks /wp-admin/tools.php?page=find-my-blocks1,02216.73438.4834.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=find-my-blocks
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=find-my-blocks
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=find-my-blocks
    • > Notice in wp-content/plugins/find-my-blocks/inc/register-route.php+69
    Trying to access array offset on value of type bool

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/find-my-blocks/inc/save-settings.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gutenberg, developer, blocks, adopt me, custom blocks

find-my-blocks/find-my-blocks.php 92% from 13 tests

The primary PHP file in "Find My Blocks" version v3.5.5... is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "v3.5.5...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,439 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1181,2672,163
PHP656109275
CSS1011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin