84% fireblocks

Code Review | Gutenberg Blocks - YouTube, Vimeo, OpenStreetMap, Countdown Timer, OpenAI - FireBlocks

WordPress plugin Gutenberg Blocks - YouTube, Vimeo, OpenStreetMap, Countdown Timer, OpenAI - FireBlocks scored84%from 54 tests.

About plugin

  • Plugin page: fireblocks
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 26, 2022
  • Latest release: Aug 10, 2023
  • Number of updates: 53
  • Update frequency: every 10.4 days
  • Top authors: fireplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,474 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲1.88MB] [CPU: ▲10.50ms] Passed 4 tests

Server-side resources used by Gutenberg Blocks - YouTube, Vimeo, OpenStreetMap, Countdown Timer, OpenAI - FireBlocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.34 ▲1.8750.68 ▲9.76
Dashboard /wp-admin5.17 ▲1.8757.32 ▲4.61
Posts /wp-admin/edit.php5.29 ▲1.9358.44 ▲10.68
Add New Post /wp-admin/post-new.php8.62 ▲2.73113.07 ▲25.37
Media Library /wp-admin/upload.php5.09 ▲1.8652.57 ▲16.95

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,752 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
fireblocks_version
widget_recent-posts
fireblocks_settings
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Gutenberg Blocks - YouTube, Vimeo, OpenStreetMap, Countdown Timer, OpenAI - FireBlocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲17813.50 ▼0.861.91 ▲0.1439.68 ▼4.73
Dashboard /wp-admin2,294 ▲1095.90 ▲1.00102.96 ▼8.1079.59 ▲35.63
Posts /wp-admin/edit.php2,181 ▲922.01 ▼0.0337.81 ▼2.7649.95 ▲15.65
Add New Post /wp-admin/post-new.php1,661 ▲14224.04 ▲0.79654.78 ▼43.72239.80 ▲176.56
Media Library /wp-admin/upload.php1,413 ▲224.18 ▼0.0598.94 ▼1.4046.25 ▲1.52

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • fireblocks_version
    • widget_recent-comments
    • fireblocks_settings

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 33× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Model\\City' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/geoip2/geoip2/src/Model/Insights.php:54
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/geoip2/geoip2/src/Record/City.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/geoip2/geoip2/src/Model/AnonymousIp.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/geoip2/geoip2/src/Exception/OutOfQueriesException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'GeoIp2\\ProviderInterface' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/geoip2/geoip2/src/WebService/Client.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/maxmind/web-service-common/src/Exception/PermissionRequiredException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/geoip2/geoip2/src/Record/Postal.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'GeoIp2\\ProviderInterface' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/geoip2/geoip2/src/Database/Reader.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'FPFramework\\Libs\\Vendors\\AbstractRegistryFormat' not found in wp-content/plugins/fireblocks/Inc/Framework/Inc/Libs/Vendors/Format/Php.php:16

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 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

fireblocks/fireblocks.php 92% from 13 tests

The main PHP script in "Gutenberg Blocks - YouTube, Vimeo, OpenStreetMap, Countdown Timer, OpenAI - FireBlocks" version 1.4.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.9.0" instead of "5.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin32,272 lines of code in 1,671 files:
LanguageFilesBlank linesComment linesLines of code
PHP4876,20715,21429,558
SVG1,086001,200
Markdown73090709
C17315477
JSON450126
JavaScript42341768
CSS37701039
Bourne Shell1132228
XML20026
YAML10018
m415014
C/C++ Header14128
HTML1001

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.47
Average class complexity9.09
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces61
Interfaces8
Traits2
Classes350
▷ Abstract classes154.29%
▷ Concrete classes33595.71%
▷ Final classes30.90%
Methods1,341
▷ Static methods18914.09%
▷ Public methods1,01075.32%
▷ Protected methods14710.96%
▷ Private methods18413.72%
Functions33
▷ Named functions1133.33%
▷ Anonymous functions2266.67%
Constants78
▷ Global constants2532.05%
▷ Class constants5367.95%
▷ Public constants53100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Inc/Framework/media/public/css/vendor/images/layers.png0.68KB1.05KB0.00%
Inc/Framework/media/public/css/vendor/images/layers-2x.png1.23KB1.67KB0.00%
Inc/Framework/media/public/css/vendor/images/marker-shadow.png0.60KB1.16KB0.00%
Inc/Framework/media/public/images/marker.png5.62KB0.74KB▼ 86.76%
Inc/Framework/media/public/css/vendor/images/marker-icon-2x.png2.41KB2.52KB0.00%