90% edd-block-editor

Code Review | Easy Digital Downloads - Block Editor

WordPress plugin Easy Digital Downloads - Block Editor scored90%from 54 tests.

About plugin

  • Plugin page: edd-block-editor
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: May 13, 2019
  • Latest release: Jan 8, 2022
  • Number of updates: 13
  • Update frequency: every 74.6 days
  • Top authors: RavanH (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,522 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.23ms] Passed 4 tests

An overview of server-side resources used by Easy Digital Downloads - Block Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0140.88 ▼3.34
Dashboard /wp-admin3.57 ▼0.0647.79 ▼19.51
Posts /wp-admin/edit.php3.69 ▲0.0150.38 ▼4.49
Add New Post /wp-admin/post-new.php6.15 ▲0.0195.50 ▼9.59
Media Library /wp-admin/upload.php3.50 ▲0.0146.34 ▲8.81

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Digital Downloads - Block Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.171.91 ▲0.3443.54 ▼2.75
Dashboard /wp-admin2,198 ▲185.60 ▼0.0991.09 ▼0.6239.24 ▼5.67
Posts /wp-admin/edit.php2,100 ▲32.05 ▲0.0538.79 ▲2.1434.70 ▼4.93
Add New Post /wp-admin/post-new.php1,546 ▲2023.34 ▼0.18666.97 ▲8.2172.97 ▲21.41
Media Library /wp-admin/upload.php1,397 ▼64.25 ▼0.06105.21 ▼0.0245.31 ▼3.42

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: easy digital downloads, edd, block editor, gutenberg

edd-block-editor/edd-block-editor.php Passed 13 tests

The primary PHP file in "Easy Digital Downloads - Block Editor" version 1.0 is used by WordPress to initiate all plugin functionality
73 characters long description:
Enable the new WordPress block editor for Easy Digital Downloads products

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192716

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected