94% block-repo-plugin-updates

Code Review | Block Repo Plugin Updates

WordPress plugin Block Repo Plugin Updates scored 94% from 54 tests.

About plugin

  • Plugin page: block-repo-plugin...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.3
  • WordPress version: 5.8.1
  • First release: Jan 17, 2019
  • Latest release: Nov 12, 2019
  • Number of updates: 13
  • Update frequency: every 23.0 days
  • Top authors: noplanman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 444 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼144.72ms] Passed 4 tests

Server-side resources used by Block Repo Plugin Updates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.79 ▼0.0525.19 ▼10.45
Dashboard /wp-admin3.08 ▲0.0243.91 ▼0.17
Posts /wp-admin/edit.php3.13 ▲0.0246.55 ▲2.38
Add New Post /wp-admin/post-new.php5.44 ▲0.0085.02 ▼564.53
Media Library /wp-admin/upload.php3.02 ▲0.0231.77 ▼3.73

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Block Repo Plugin Updates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,281 ▼31516.08 ▲0.437.79 ▼1.119.83 ▼44.48
Dashboard /wp-admin2,962 ▲286.02 ▲0.15157.71 ▲10.60110.18 ▼4.60
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0063.69 ▲0.1384.02 ▼7.63
Add New Post /wp-admin/post-new.php1,672 ▲17418.78 ▼0.05351.14 ▼14.51111.49 ▼4.45
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.02147.48 ▼4.20121.23 ▼0.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
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_filter() in wp-content/plugins/block-repo-plugin-updates/block-repo-plugin-updates.php:73

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

readme.txt Passed 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
8 plugin tags: plugin, repository, developer, repo, dev...

block-repo-plugin-updates/block-repo-plugin-updates.php 92% from 13 tests

The main PHP file in "Block Repo Plugin Updates" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 182 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1136344

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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 functions480.00%
▷ Anonymous functions120.00%
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
PNG images were not found in this plugin