84% full-site-editing

Code Review | WordPress.com Editing Toolkit

WordPress plugin WordPress.com Editing Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: full-site-editing
  • Plugin version: 4.3633
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: May 29, 2019
  • Latest release: Nov 16, 2023
  • Number of updates: 1,150
  • Update frequency: every 1.4 days
  • Top authors: ebuccelli (11.57%)automattic (7.74%)mmtr86 (6.35%)fullofcaffeine (5.83%)philipmjackson (4.96%)

Code review

54 tests

User reviews

12 reviews

Install metrics

100,000+ active /641,513 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.03MB] [CPU: ▼13.11ms] Passed 4 tests

This is a short check of server-side resources used by WordPress.com Editing Toolkit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2036.52 ▼4.56
Dashboard /wp-admin3.46 ▲0.1646.69 ▼6.22
Posts /wp-admin/edit.php3.57 ▲0.2249.19 ▲3.53
Add New Post /wp-admin/post-new.php5.50 ▼0.3960.23 ▼38.34
Media Library /wp-admin/upload.php3.38 ▲0.1531.55 ▼3.33

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 437 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
recovery_mode_email_last_sent
widget_wpcom-mailerlite
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

WordPress.com Editing Toolkit: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.20 ▼0.201.61 ▼0.2336.67 ▼6.13
Dashboard /wp-admin2,196 ▲185.56 ▼0.1698.35 ▼15.7643.86 ▼1.49
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0240.77 ▲3.3537.59 ▲2.53
Add New Post /wp-admin/post-new.php45 ▼1,4810.41 ▼22.630.08 ▼672.628.53 ▼52.32
Media Library /wp-admin/upload.php1,401 ▼24.16 ▼0.07113.67 ▲13.7173.38 ▲29.59

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 were found after uninstall: 8 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_wpcom-mailerlite
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 67× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A8C\\FSE\\add_action() in wp-content/plugins/full-site-editing/wpcom-documentation-links/class-wpcom-documentation-links.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Automattic\\Jetpack\\Global_Styles\\add_action() in wp-content/plugins/full-site-editing/global-styles/class-global-styles.php:621
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A8C\\FSE\\add_action() in wp-content/plugins/full-site-editing/wpcom-block-editor-nav-sidebar/class-wpcom-block-editor-nav-sidebar.php:100
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/full-site-editing/help-center/class-wp-rest-help-center-forum.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/full-site-editing/phpunit/class-is-fse-active-test.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/full-site-editing/help-center/class-wp-rest-help-center-search.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A8C\\FSE\\register_activation_hook() in wp-content/plugins/full-site-editing/dotcom-fse/helpers.php:193
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/full-site-editing/wpcom-block-editor-nux/class-wp-rest-wpcom-block-editor-first-post-published-modal-controller.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A8C\\FSE\\register_activation_hook() in wp-content/plugins/full-site-editing/dotcom-fse/helpers.php:193
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/full-site-editing/help-center/class-wp-rest-help-center-ticket.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: editor, block, page, gutenberg, blocks

full-site-editing/full-site-editing-plugin.php 92% from 13 tests

The main PHP file in "WordPress.com Editing Toolkit" ver. 4.3633 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("full-site-editing.php" instead of "full-site-editing-plugin.php")

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
No dangerous file extensions were detected172,936 lines of code in 424 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14928,86729,403157,061
PHP1081,4923,8307,968
TypeScript463621983,198
Sass42450593,006
Markdown102390634
SVG1837362
JSX53828335
JSON300216
CSS4238127
XML10029

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.56
▷ Minimum class complexity1.00
▷ Maximum class complexity167.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes53
▷ Abstract classes00.00%
▷ Concrete classes53100.00%
▷ Final classes00.00%
Methods333
▷ Static methods7121.32%
▷ Public methods30090.09%
▷ Protected methods00.00%
▷ Private methods339.91%
Functions146
▷ Named functions11075.34%
▷ Anonymous functions3624.66%
Constants13
▷ Global constants538.46%
▷ Class constants861.54%
▷ Public constants8100.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
PNG images were not found in this plugin