94% diviner-blocks

Code Review | Diviner Blocks

WordPress plugin Diviner Blocks scored 94% from 54 tests.

About plugin

  • Plugin page: diviner-blocks
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5
  • WordPress version: 5.8.1
  • First release: Nov 8, 2020
  • Latest release: Nov 8, 2020
  • Number of updates: 2
  • Update frequency: every 6.0 days
  • Top authors: indithemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 414 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼170.57ms] Passed 4 tests

Analyzing server-side resources used by Diviner Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.81 ▲11.78
Dashboard /wp-admin3.06 ▲0.0144.02 ▲2.73
Posts /wp-admin/edit.php3.11 ▲0.0041.75 ▼4.27
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.95 ▼679.25
Media Library /wp-admin/upload.php3.01 ▲0.0132.68 ▼1.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Diviner Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10915.83 ▲0.228.81 ▼1.1046.65 ▼1.27
Dashboard /wp-admin2,993 ▲625.90 ▼0.14134.51 ▼0.15107.23 ▼16.91
Posts /wp-admin/edit.php2,767 ▲282.70 ▼0.0166.41 ▲2.5589.04 ▼6.69
Add New Post /wp-admin/post-new.php1,516 ▼2,11818.56 ▲3.54370.64 ▼88.88108.79 ▼5.26
Media Library /wp-admin/upload.php1,833 ▲265.02 ▼0.05150.10 ▼1.99128.38 ▲6.48

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 | 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diviner-blocks/inc/demo_import.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/diviner-blocks/inc/block_category.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diviner-blocks/inc/notice.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/diviner-blocks/diviner-blocks.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diviner-blocks/inc/plugin_setup.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diviner-blocks/inc/block_setup.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 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
3 plugin tags: gutenberg, blocks, diviner

diviner-blocks/diviner-blocks.php Passed 13 tests

Analyzing the main PHP file in "Diviner Blocks" version 1.0
51 characters long description:
Custom Gutenberg Blocks for Diviner WordPress Theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin70,838 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
XML35881,17667,894
JavaScript163426142,343
CSS4016287
PHP74528181
LESS3127133

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin