94% blocs-developer

Code Review | Blocs Developer

WordPress plugin Blocs Developer scored 94% from 54 tests.

About plugin

  • Plugin page: blocs-developer
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.7.0
  • WordPress version: 5.8.1
  • First release: Nov 30, 2020
  • Latest release: Mar 9, 2021
  • Number of updates: 10
  • Update frequency: every 10.3 days
  • Top authors: cazoobi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 1,126 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.64MB] [CPU: ▼160.76ms] Passed 4 tests

An overview of server-side resources used by Blocs Developer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1325.03 ▲1.17
Dashboard /wp-admin3.07 ▲0.0145.58 ▼2.52
Posts /wp-admin/edit.php3.13 ▲0.0147.20 ▲3.64
Add New Post /wp-admin/post-new.php2.86 ▼2.5824.29 ▼641.35
Media Library /wp-admin/upload.php3.02 ▲0.0135.20 ▼0.33

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Blocs Developer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.93 ▼0.048.63 ▲1.3050.61 ▼2.98
Dashboard /wp-admin2,995 ▲645.86 ▼0.07143.34 ▼0.73126.64 ▲8.24
Posts /wp-admin/edit.php2,767 ▲282.81 ▲0.1275.38 ▲0.02101.49 ▲8.86
Add New Post /wp-admin/post-new.php1,700 ▲1718.91 ▲0.45407.32 ▼3.63119.48 ▼2.61
Media Library /wp-admin/upload.php1,835 ▲255.00 ▼0.01155.84 ▼15.26129.67 ▲3.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocs-developer/blocs-developer.php:13

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: development

blocs-developer/blocs-developer.php 92% from 13 tests

Analyzing the main PHP file in "Blocs Developer" version 1.0.1
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 427 characters long)

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 detected76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1231876

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin