90% charts-blocks

Code Review | Charts Blocks for Gutenberg

WordPress plugin Charts Blocks for Gutenberg scored90%from 54 tests.

About plugin

  • Plugin page: charts-blocks
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: May 29, 2021
  • Latest release: May 29, 2021
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: sandipmondal (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /1,467 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.25MB] [CPU: ▼20.08ms] Passed 4 tests

This is a short check of server-side resources used by Charts Blocks for Gutenberg
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.57 ▼0.41
Dashboard /wp-admin3.35 ▼0.0048.14 ▼15.54
Posts /wp-admin/edit.php3.40 ▲0.0450.67 ▼1.29
Add New Post /wp-admin/post-new.php4.83 ▼1.0651.70 ▼61.85
Media Library /wp-admin/upload.php3.27 ▲0.0437.83 ▼1.65

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Charts Blocks for Gutenberg
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,080 ▲33423.06 ▲8.7441.93 ▲40.1436.82 ▼2.97
Dashboard /wp-admin2,298 ▲11010.41 ▲5.54138.35 ▲38.0943.78 ▼5.08
Posts /wp-admin/edit.php2,183 ▲949.04 ▲6.9982.61 ▲41.3435.57 ▼2.44
Add New Post /wp-admin/post-new.php6,204 ▲4,69019.07 ▲1.56751.06 ▲83.1534.76 ▼20.14
Media Library /wp-admin/upload.php1,507 ▲12211.85 ▲7.55124.91 ▲1.9342.40 ▼7.20

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected 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 96% from 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: charts blocks, data visualiztion, charts, graphs, graph blocks

charts-blocks/charts-block.php 92% from 13 tests

This is the main PHP file of "Charts Blocks for Gutenberg" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("charts-blocks.php" instead of "charts-block.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected18,298 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JSON80016,157
JavaScript144343752,061
PHP3272480

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin