90% cycle-blocks

Code Review | Cycle Blocks

WordPress plugin Cycle Blocks scored90%from 54 tests.

About plugin

  • Plugin page: cycle-blocks
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2022
  • Latest release: Nov 21, 2023
  • Number of updates: 11
  • Update frequency: every 37.6 days
  • Top authors: thingsym (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /339 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.38ms] Passed 4 tests

Server-side resources used by Cycle Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0637.91 ▼1.43
Dashboard /wp-admin3.35 ▲0.0550.62 ▲3.35
Posts /wp-admin/edit.php3.40 ▲0.0549.85 ▲5.28
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.84 ▲0.80
Media Library /wp-admin/upload.php3.27 ▲0.0533.93 ▼1.19

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Cycle Blocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲10513.82 ▼0.838.25 ▲6.6237.89 ▼5.95
Dashboard /wp-admin2,199 ▲195.04 ▼0.5599.13 ▲0.0041.50 ▼3.96
Posts /wp-admin/edit.php2,104 ▲12.47 ▲0.4840.63 ▲2.5135.94 ▲1.01
Add New Post /wp-admin/post-new.php6,186 ▲4,66019.49 ▼3.81939.86 ▲340.1939.66 ▼17.72
Media Library /wp-admin/upload.php1,401 ▼24.57 ▲0.3898.35 ▼1.0839.84 ▼3.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 errors were detected

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, block, block editor

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

The primary PHP file in "Cycle Blocks" version 1.1.3 is used by WordPress to initiate all plugin functionality
82 characters long description:
Cycle Blocks plugin is a collection of block for block themes (Full Site Editing).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,353 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP7165194712
JSON500237
CSS4160217
PO File17881186
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity24.00
▷ Minimum class complexity6.00
▷ Maximum class complexity47.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin