90% gecko-blocks

Code Review | Gecko Blocks

WordPress plugin Gecko Blocks scored90%from 54 tests.

About plugin

  • Plugin page: gecko-blocks
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2020
  • Latest release: Oct 7, 2021
  • Number of updates: 19
  • Update frequency: every 33.1 days
  • Top authors: musicalbigfoot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,167 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.18MB] [CPU: ▼17.24ms] Passed 4 tests

A check of server-side resources used by Gecko Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.80 ▲2.76
Dashboard /wp-admin3.40 ▲0.0948.34 ▼4.31
Posts /wp-admin/edit.php3.45 ▲0.0946.78 ▼3.53
Add New Post /wp-admin/post-new.php4.89 ▼1.0052.08 ▼57.75
Media Library /wp-admin/upload.php3.32 ▲0.0933.73 ▼3.38

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 169 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Gecko Blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.60 ▼0.031.88 ▲0.2546.49 ▲1.33
Dashboard /wp-admin2,192 ▲155.63 ▲0.0195.91 ▲7.8242.37 ▼1.79
Posts /wp-admin/edit.php2,100 ▼02.15 ▲0.1437.31 ▲1.3134.34 ▼4.46
Add New Post /wp-admin/post-new.php1,731 ▲20524.81 ▲1.03689.68 ▼5.8637.95 ▼22.72
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.0095.49 ▼15.1044.33 ▼4.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
5 plugin tags: blocks, gutenberg, accordion, tabs, section

gecko-blocks/gecko-blocks.php 92% from 13 tests

"Gecko Blocks" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected933 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
PHP18118110681
JavaScript46754130
JSON130099
CSS230023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions18
▷ Named functions15.56%
▷ Anonymous functions1794.44%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin