84% qroko-blocks

Code Review | Qroko Blocks

WordPress plugin Qroko Blocks scored 84% from 54 tests.

About plugin

  • Plugin page: qroko-blocks
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.7
  • WordPress version: 6.3.1
  • First release: Jul 9, 2020
  • Latest release: Mar 31, 2021
  • Number of updates: 18
  • Update frequency: every 14.8 days
  • Top authors: qrac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,187 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.23MB] [CPU: ▼16.24ms] Passed 4 tests

Analyzing server-side resources used by Qroko Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.18 ▼3.12
Dashboard /wp-admin3.34 ▲0.0449.39 ▼2.64
Posts /wp-admin/edit.php3.39 ▲0.0453.34 ▼4.10
Add New Post /wp-admin/post-new.php4.85 ▼1.0351.47 ▼55.08
Media Library /wp-admin/upload.php3.26 ▲0.0439.27 ▲3.89

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Qroko Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14814.74 ▲0.392.72 ▲0.9648.08 ▼4.00
Dashboard /wp-admin2,209 ▲215.84 ▼0.06115.06 ▼23.1845.65 ▼0.14
Posts /wp-admin/edit.php2,092 ▼01.98 ▼0.0539.78 ▼4.5833.03 ▼5.09
Add New Post /wp-admin/post-new.php6,412 ▲4,87920.89 ▼2.24959.17 ▲267.1472.41 ▲5.80
Media Library /wp-admin/upload.php1,385 ▼34.13 ▲0.00114.90 ▲3.6746.91 ▲2.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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/qroko-blocks/functions/open-graph.php:103

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: gutenberg, block, card, blog, blocks...

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

This is the main PHP file of "Qroko Blocks" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
Custom Blocks for headless WordPress

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
There were no executable files found in this plugin730 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS2620452
PO File16191143
PHP44266132
JavaScript2002
JSON1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity4.00
▷ Minimum method complexity2.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.00%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.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
No PNG files were detected