90% gecko-grid-layout

Code Review | Gecko Grid Layout

WordPress plugin Gecko Grid Layout scored90%from 54 tests.

About plugin

  • Plugin page: gecko-grid-layout
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1
  • WordPress version: 6.3.1
  • First release: Feb 23, 2019
  • Latest release: May 28, 2019
  • Number of updates: 29
  • Update frequency: every 3.2 days
  • Top authors: dwayneparton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,380 total downloads

Benchmarks

Plugin footprint 83% from 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.05MB] [CPU: ▼8.27ms] Passed 4 tests

A check of server-side resources used by Gecko Grid Layout
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.84 ▲5.58
Dashboard /wp-admin3.35 ▲0.0446.47 ▼3.95
Posts /wp-admin/edit.php3.40 ▲0.0446.18 ▼8.37
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.90 ▼20.18
Media Library /wp-admin/upload.php3.27 ▲0.0436.13 ▼0.59

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gecko Grid Layout
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.355.03 ▲3.4841.66 ▲1.78
Dashboard /wp-admin2,206 ▲184.81 ▼0.06102.65 ▼8.6940.31 ▼7.44
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0535.73 ▼2.3736.68 ▼1.28
Add New Post /wp-admin/post-new.php1,641 ▲12223.76 ▲0.91586.68 ▼34.1849.14 ▼7.68
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.0295.86 ▼11.6042.11 ▼5.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (They're coming) image missing
The official readme.txt is a good inspiration

gecko-grid-layout/gecko-grid-layout.php Passed 13 tests

The main PHP file in "Gecko Grid Layout" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
68 characters long description:
Grid Layout block uses CSS grid to create grid layouts in gutenberg.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin508 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS2110368
PHP11748138
JavaScript2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin