84% grigora-kit

Code Review | Grigora's Kit For Website Building

WordPress plugin Grigora's Kit For Website Building scored84%from 54 tests.

About plugin

  • Plugin page: grigora-kit
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2022
  • Latest release: Nov 21, 2022
  • Number of updates: 16
  • Update frequency: every 8.1 days
  • Top authors: latracal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /4,006 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.34MB] [CPU: ▲6.37ms] Passed 4 tests

An overview of server-side resources used by Grigora's Kit For Website Building
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.76 ▲2.3054.70 ▲12.88
Dashboard /wp-admin5.78 ▲2.4859.30 ▲0.91
Posts /wp-admin/edit.php5.78 ▲2.4265.00 ▲14.40
Add New Post /wp-admin/post-new.php8.04 ▲2.15100.84 ▼2.71
Media Library /wp-admin/upload.php5.78 ▲2.5556.08 ▲14.49

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Grigora's Kit For Website Building: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.37 ▼1.161.89 ▲0.0637.51 ▼6.09
Dashboard /wp-admin2,310 ▲1075.84 ▼0.04100.35 ▼16.1739.82 ▼2.87
Posts /wp-admin/edit.php2,190 ▲872.07 ▲0.0843.95 ▲5.2338.01 ▲4.36
Add New Post /wp-admin/post-new.php6,428 ▲4,88828.29 ▲5.131,007.62 ▲319.0043.87 ▼21.25
Media Library /wp-admin/upload.php1,492 ▲924.32 ▲0.02101.99 ▼10.8844.16 ▼1.64

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/grigora-kit/inc/dashboard.php:176
    • > PHP Fatal error
      Uncaught Error: Call to undefined function grigora_kit_get_path() in wp-content/plugins/grigora-kit/inc/starter-templates/init.php:174
    • > PHP Fatal error
      Uncaught Error: Call to undefined function grigora_kit_get_path() in wp-content/plugins/grigora-kit/inc/blocks/init.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/grigora-kit/inc/starter-templates/ajax-helpers.php:1270
    • > PHP Fatal error
      Uncaught Error: Call to undefined function grigora_kit_get_path() in wp-content/plugins/grigora-kit/inc/init.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function grigora_kit_get_path() in wp-content/plugins/grigora-kit/inc/table-of-contents/init.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: animation, gutenberg, block editor, page-builder, table of contents...

grigora-kit/grigora-kit.php Passed 13 tests

The entry point to "Grigora's Kit For Website Building" version 1.4.0 is a PHP file that has certain tags in its header comment area
124 characters long description:
Your only requirement to create a beautiful website. Import from many prebuilt templates, or build with scratch from blocks.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected23,593 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP278271,47911,758
CSS571372717,278
JavaScript294021134,212
JSON2100239
Markdown134094
SVG10012

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,596)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 400)
Cyclomatic complexity
Average complexity per logical line of code1.27
Average class complexity917.75
▷ Minimum class complexity11.00
▷ Maximum class complexity3,596.00
Average method complexity43.63
▷ Minimum method complexity1.00
▷ Maximum method complexity400.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods87
▷ Static methods78.05%
▷ Public methods8395.40%
▷ Protected methods33.45%
▷ Private methods11.15%
Functions95
▷ Named functions9397.89%
▷ Anonymous functions22.11%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png2.40KB1.93KB▼ 19.50%