84% cinza-grid

Code Review | Cinza Grid

WordPress plugin Cinza Grid scored 84% from 54 tests.

About plugin

  • Plugin page: cinza-grid
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: May 18, 2022
  • Latest release: Aug 24, 2023
  • Number of updates: 27
  • Update frequency: every 17.2 days
  • Top authors: madebycinza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,688 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.42ms] Passed 4 tests

Server-side resources used by Cinza Grid
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.90 ▲0.94
Dashboard /wp-admin3.34 ▲0.0447.89 ▼6.42
Posts /wp-admin/edit.php3.39 ▲0.0448.38 ▼1.90
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.86 ▼10.29
Media Library /wp-admin/upload.php3.26 ▲0.0336.44 ▲2.16
All Grids /wp-admin/edit.php?post_type=cinza_grid3.3443.74
Add New /wp-admin/post-new.php?post_type=cinza_grid3.3247.67

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Cinza Grid
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲17813.97 ▼0.425.22 ▲3.3244.98 ▲1.17
Dashboard /wp-admin2,235 ▲464.86 ▼0.09108.06 ▼11.3241.84 ▲0.21
Posts /wp-admin/edit.php2,118 ▲262.02 ▼0.0140.20 ▲1.4336.30 ▲1.19
Add New Post /wp-admin/post-new.php1,553 ▲3423.39 ▲0.13661.39 ▼44.7059.26 ▲4.34
Media Library /wp-admin/upload.php1,420 ▲324.32 ▲0.05103.40 ▼5.4947.77 ▲0.29
All Grids /wp-admin/edit.php?post_type=cinza_grid1,2543.2948.7833.66
Add New /wp-admin/post-new.php?post_type=cinza_grid2,7063.5962.3989.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cinza-grid/includes/backend-cpts.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cinza-grid/includes/backend-shortcodes.php:3

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: grid, metafizzy, isotope, post grid, display post

cinza-grid/cinza-grid.php Passed 13 tests

The main file in "Cinza Grid" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
22 characters long description:
A minimal grid plugin.

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
Good job! No executable or dangerous file extensions detected1,553 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP32131761,133
CSS58532392
SVG10016
JavaScript34912

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions26
▷ Named functions2284.62%
▷ Anonymous functions415.38%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/cinza-icon-pink.png13.98KB6.67KB▼ 52.29%
assets/images/metafizzy-icon.png37.06KB13.97KB▼ 62.31%
assets/images/razorfrog-icon-turquoise.png40.34KB15.75KB▼ 60.95%