79% spreadsheet-block

Code Review | Spreadsheet block

WordPress plugin Spreadsheet block scored79%from 54 tests.

About plugin

  • Plugin page: spreadsheet-block
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 3, 2022
  • Latest release: Apr 8, 2022
  • Number of updates: 3
  • Update frequency: every 12.0 days
  • Top authors: Sjeiti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.23MB] [CPU: ▼43.24ms] Passed 4 tests

A check of server-side resources used by Spreadsheet block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7113.17 ▼30.15
Dashboard /wp-admin2.78 ▼0.5217.93 ▼40.29
Posts /wp-admin/edit.php2.78 ▼0.5715.32 ▼28.75
Add New Post /wp-admin/post-new.php2.78 ▼3.1017.08 ▼73.75
Media Library /wp-admin/upload.php2.78 ▼0.4416.22 ▼17.70

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Spreadsheet block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲14031.15 ▲16.75325.45 ▲323.7042.30 ▼1.65
Dashboard /wp-admin2,209 ▲214.82 ▼0.07102.76 ▼13.0142.72 ▼0.87
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0536.76 ▼1.8133.63 ▲0.32
Add New Post /wp-admin/post-new.php6,604 ▲5,07032.74 ▲9.361,106.56 ▲432.6759.39 ▲3.13
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0896.39 ▼13.4841.15 ▼3.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_block_script_handle was called incorrectly. The asset file (wp-content/plugins/spreadsheet-block/public/js/index.js?why-u-no-worki.asset.php) for the "script" defined in "create-block/spreadsheet" block definition is missing. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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:
  • Requires at least: Invalid version format
The official readme.txt might help

spreadsheet-block/spreadsheet-block.php 92% from 13 tests

Analyzing the main PHP file in "Spreadsheet block" version 1.0.3
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin79,024 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript314,00412,64578,874
CSS241114
PHP371922
JSON10013
XML1001

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.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin