72% block-specific-plugin-updates

Code Review | Block Plugin Update

WordPress plugin Block Plugin Update scored72%from 54 tests.

About plugin

  • Plugin page: block-specific-pl...
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 24, 2012
  • Latest release: Jul 26, 2022
  • Number of updates: 13
  • Update frequency: every 290.5 days
  • Top authors: dnesscarkey (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

7,000+ active /86,983 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 gracefully, with no errors

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

Server-side resources used by Block Plugin Update
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.02 ▼0.53
Dashboard /wp-admin3.31 ▲0.0145.59 ▼1.55
Posts /wp-admin/edit.php3.37 ▲0.0146.76 ▲2.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.27 ▼14.98
Media Library /wp-admin/upload.php3.24 ▲0.0130.72 ▼3.10
Block Plugin Update /wp-admin/options-general.php?page=block-specific-plugin-updates/plugin_interface.php3.2429.94

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Block Plugin Update
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.19 ▼1.201.98 ▲0.0244.26 ▼0.36
Dashboard /wp-admin2,207 ▲165.82 ▼0.07101.55 ▼4.5539.03 ▲1.68
Posts /wp-admin/edit.php2,093 ▲12.04 ▼0.0134.60 ▼5.6033.13 ▼3.21
Add New Post /wp-admin/post-new.php1,536 ▲323.24 ▲0.03628.36 ▲8.7642.39 ▼19.91
Media Library /wp-admin/upload.php1,392 ▲14.24 ▲0.0798.65 ▲4.4142.91 ▲0.31
Block Plugin Update /wp-admin/options-general.php?page=block-specific-plugin-updates/plugin_interface.php1,0092.0325.6425.02

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=block-specific-plugin-updates/plugin_interface.php
    • > Notice in wp-content/plugins/block-specific-plugin-updates/includes/bspu_plugin_select.php+2
    Undefined index: submit-bpu

SRP 0% 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/block-specific-plugin-updates/includes/bspu_header.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-specific-plugin-updates/plugin_interface.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/block-specific-plugin-updates/block-specific-plugin-updates.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/block-specific-plugin-updates/includes/bspu_footer.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/block-specific-plugin-updates/includes/bspu_plugin_select.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version format is invalid
  • Screenshots: Screenshot #1 (Admin Setting) image not found
The official readme.txt is a good inspiration

block-specific-plugin-updates/block-specific-plugin-updates.php Passed 13 tests

The entry point to "Block Plugin Update" version 3.3 is a PHP file that has certain tags in its header comment area
105 characters long description:
This plugin blocks the updates for specific plugins. You can select the plugins from plugin setting page.

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 detected183 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP52921183

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png139.83KB28.04KB▼ 79.95%