72% bulk-edit-posts-on-frontend

Code Review | WordPress Editable Posts Table for the Frontend

WordPress plugin WordPress Editable Posts Table for the Frontend scored72%from 54 tests.

About plugin

  • Plugin page: bulk-edit-posts-o...
  • Plugin version: 2.4.31
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: May 5, 2017
  • Latest release: Nov 1, 2023
  • Number of updates: 126
  • Update frequency: every 18.8 days
  • Top authors: JoseVega (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /12,310 total downloads

Benchmarks

Plugin footprint 64% 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 gracefully, with no errors

Server metrics [RAM: ▲7.07MB] [CPU: ▲48.83ms] 50% from 4 tests

This is a short check of server-side resources used by WordPress Editable Posts Table for the Frontend
Please fix the following
  • RAM: Try to keep total memory usage under 10MB (currently 10.56MB on /wp-admin/admin.php?page=freemius)
  • Extra RAM: Extra memory usage should kept under 5MB (currently 7.07MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /10.49 ▲7.0297.27 ▲56.51
Dashboard /wp-admin10.45 ▲7.10108.48 ▲42.93
Posts /wp-admin/edit.php10.50 ▲7.14106.17 ▲58.67
Add New Post /wp-admin/post-new.php12.97 ▲7.08129.83 ▲37.21
Media Library /wp-admin/upload.php10.31 ▲7.0894.47 ▲59.71
Settings /wp-admin/admin.php?page=vg_sheet_editor10.4193.30
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius10.5681.43

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 395 new files
Database: no new tables, 13 new options
New WordPress options
vgse_columns_visibility
db_upgraded
widget_theysaidso_widget
fs_debug_mode
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
fs_active_plugins
vgse_columns_visibility_migrated
fs_accounts
...

Browser metrics Passed 4 tests

WordPress Editable Posts Table for the Frontend: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲20914.43 ▲0.062.06 ▲0.0734.31 ▼10.21
Dashboard /wp-admin2,346 ▲1725.61 ▼0.0698.59 ▼3.0182.51 ▲35.96
Posts /wp-admin/edit.php2,160 ▲631.98 ▲0.0339.76 ▲3.5337.86 ▲2.90
Add New Post /wp-admin/post-new.php1,577 ▲5121.76 ▼1.49705.01 ▲50.8553.59 ▲9.09
Media Library /wp-admin/upload.php1,450 ▲534.08 ▼0.09102.13 ▼0.3878.47 ▲34.15
Settings /wp-admin/admin.php?page=vg_sheet_editor2,1855.82163.1567.07
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1211.8224.2827.29

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
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/bulk-edit-posts-on-frontend/vendor/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 12 options in the database
    • widget_theysaidso_widget
    • vgse_columns_visibility
    • theysaidso_admin_options
    • db_upgraded
    • fs_accounts
    • vgsefe_welcome_redirect
    • can_compress_scripts
    • vg_sheet_editor
    • widget_recent-posts
    • fs_debug_mode
    • ...

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 18× 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 esc_url() in wp-content/plugins/bulk-edit-posts-on-frontend/views/backend/metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-edit-posts-on-frontend/modules/wp-sheet-editor/inc/integrations/elementor.php:107
    • > PHP Fatal error
      Uncaught Error: Call to undefined function VGSE() in wp-content/plugins/bulk-edit-posts-on-frontend/modules/wp-sheet-editor/views/whats-new/2.6.0.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-edit-posts-on-frontend/integrations/wcfm/views/metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/bulk-edit-posts-on-frontend/vendor/vg-plugin-sdk/views/page-template.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_queried_object() in wp-content/plugins/bulk-edit-posts-on-frontend/views/frontend/page-template-iframe.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_queried_object() in wp-content/plugins/bulk-edit-posts-on-frontend/views/frontend/page-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-edit-posts-on-frontend/integrations/wcmp/wcmp.php:139
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-edit-posts-on-frontend/integrations/wcfm/wcfm.php:151
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-edit-posts-on-frontend/integrations/dokan/dokan.php:139

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: frontend dashboard, anonymous post, guest author, guest post, frontend post

bulk-edit-posts-on-frontend/frontend-editor.php 77% from 13 tests

The main PHP file in "WordPress Editable Posts Table for the Frontend" ver. 2.4.31 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bulk-edit-posts-on-frontend.php" instead of "frontend-editor.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "3.0")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin183,622 lines of code in 265 files:
LanguageFilesBlank linesComment linesLines of code
PO File2719,28928,17664,757
JavaScript1415,53218,56054,407
PHP19610,71318,94250,259
CSS211,57053711,025
SVG4002,691
Markdown12110429
JSON10038
XML13016

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity74.30
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes95
▷ Abstract classes33.16%
▷ Concrete classes9296.84%
▷ Final classes00.00%
Methods2,024
▷ Static methods24312.01%
▷ Public methods1,59178.61%
▷ Protected methods170.84%
▷ Private methods41620.55%
Functions134
▷ Named functions13197.76%
▷ Anonymous functions32.24%
Constants158
▷ Global constants11170.25%
▷ Class constants4729.75%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.22MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/wp-sheet-editor/assets/vendor/images/input-checked.png0.31KB0.32KB0.00%
modules/wp-sheet-editor/assets/imgs/logo-248x102.png14.09KB5.48KB▼ 61.08%
assets/imgs/logo-248x102.png14.09KB5.48KB▼ 61.08%
modules/wp-sheet-editor/assets/vendor/images/chosen-sprite@2x.png0.72KB0.83KB0.00%
vendor/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%