84% fast-blockcontrol

Code Review | Fast BlockControl

WordPress plugin Fast BlockControl scored84%from 54 tests.

About plugin

  • Plugin page: fast-blockcontrol
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 22, 2019
  • Latest release: Aug 10, 2023
  • Number of updates: 13
  • Update frequency: every 104.4 days
  • Top authors: fastflow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /751 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
This plugin's installer ran successfully

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

A check of server-side resources used by Fast BlockControl
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0134.87 ▼6.31
Dashboard /wp-admin3.33 ▲0.0349.46 ▼7.38
Posts /wp-admin/edit.php3.38 ▲0.0348.86 ▲0.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0693.45 ▼8.93
Media Library /wp-admin/upload.php3.26 ▲0.0339.33 ▲0.40

Server storage [IO: ▲1.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: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Fast BlockControl
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.62 ▲0.351.88 ▼0.0843.12 ▲0.36
Dashboard /wp-admin2,198 ▲245.62 ▼0.0783.43 ▼22.5637.90 ▼12.56
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0736.30 ▲1.5736.91 ▲2.19
Add New Post /wp-admin/post-new.php1,379 ▼14920.21 ▼2.91620.47 ▼31.1932.74 ▼24.54
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.04105.20 ▲7.5260.13 ▲16.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-blockcontrol/block.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #2 (Add tags into the Fast Flow system), #3 (Update your users tags manually), #4 (Use one of our various CRM integrations for automated user tagging)
You can look at the official readme.txt

fast-blockcontrol/fast-block-control.php 92% from 13 tests

The entry point to "Fast BlockControl" version 1.2.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fast-blockcontrol.php" instead of "fast-block-control.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected899 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1308182602
PHP22230296
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.70
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin