67% front-editor

Code Review | Guest posting / Frontend Posting wordpress plugin - WP Front User Submit / Front Editor

WordPress plugin Guest posting / Frontend Posting wordpress plugin - WP Front User Submit / Front Editor scored67%from 54 tests.

About plugin

  • Plugin page: front-editor
  • Plugin version: 4.3.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.0-6.3.0
  • WordPress version: 6.3.1
  • First release: May 15, 2020
  • Latest release: Nov 12, 2023
  • Number of updates: 69
  • Update frequency: every 18.5 days
  • Top authors: aharonyan (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

200+ active /14,187 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲4.92MB] [CPU: ▲16.73ms] Passed 4 tests

Analyzing server-side resources used by Guest posting / Frontend Posting wordpress plugin - WP Front User Submit / Front Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.91 ▲5.4567.10 ▲27.06
Dashboard /wp-admin8.93 ▲5.6373.27 ▲23.90
Posts /wp-admin/edit.php8.93 ▲5.5886.39 ▲38.09
Add New Post /wp-admin/post-new.php8.93 ▲3.0581.73 ▼20.02
Media Library /wp-admin/upload.php8.93 ▲5.7070.43 ▲35.98
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.9363.38

Server storage [IO: ▲16.47MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 328 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
db_upgraded
fs_accounts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
fs_active_plugins
theysaidso_admin_options
fs_debug_mode

Browser metrics Passed 4 tests

Guest posting / Frontend Posting wordpress plugin - WP Front User Submit / Front Editor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7614.68 ▲0.311.60 ▲0.0127.97 ▼13.55
Dashboard /wp-admin2,242 ▲655.58 ▼0.0492.69 ▲5.0942.50 ▲1.95
Posts /wp-admin/edit.php2,147 ▲472.03 ▲0.0140.78 ▼0.5438.08 ▲1.40
Add New Post /wp-admin/post-new.php1,540 ▲1423.51 ▲0.52688.81 ▲80.8050.02 ▼1.98
Media Library /wp-admin/upload.php1,444 ▲414.20 ▼0.07100.27 ▲1.8743.60 ▲1.18
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1141.6725.6726.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/front-editor/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • fs_debug_mode
    • fs_active_plugins
    • fs_accounts

Smoke tests 50% from 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 0% from 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
Please fix the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/front-editor/templates/editor/checklist.php
    • > /wp-content/plugins/front-editor/templates/editor/table.php
    • > /wp-content/plugins/front-editor/templates/editor/embed.php
    • > /wp-content/plugins/front-editor/templates/editor/quote.php
  • 109× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/front-editor/templates/editor/embed.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/front-editor/templates/admin/settings/form-notification-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/front-editor/templates/front-editor/text.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/front-editor/templates/front-editor/tags.php:2
    • > PHP Notice
      Undefined variable: post_status in wp-content/plugins/front-editor/templates/user-admin.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/front-editor/templates/admin/settings/form-submission-display.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/front-editor/templates/front-editor/post-title.php:2
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/front-editor/templates/front-editor/tinymce.php on line 1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/front-editor/templates/editor/gallery.php on line 23
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/front-editor/templates/editor/quote.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Screenshot #9 (Themes settings) image missing
The official readme.txt might help

front-editor/front-editor.php 85% from 13 tests

This is the main PHP file of "Guest posting / Frontend Posting wordpress plugin - WP Front User Submit / Front Editor" version 4.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 253 characters long)
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "7.0")

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
Good job! No executable or dangerous file extensions detected196,484 lines of code in 266 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3215,46816,673109,753
PHP1809,01018,62738,592
JSON40037,315
CSS151,0531496,768
Sass25338373,454
PO File2134136340
SVG703239
Markdown15023

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity66.51
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes74
▷ Abstract classes22.70%
▷ Concrete classes7297.30%
▷ Final classes00.00%
Methods1,441
▷ Static methods35024.29%
▷ Public methods1,04172.24%
▷ Protected methods171.18%
▷ Private methods38326.58%
Functions120
▷ Named functions11091.67%
▷ Anonymous functions108.33%
Constants151
▷ Global constants10468.87%
▷ Class constants4731.13%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/images/cloud-computing.240cce61.png7.98KB7.61KB▼ 4.55%
assets/img/delete.png7.13KB3.11KB▼ 56.37%
assets/img/logo_24.png1.48KB1.56KB0.00%
assets/img/admin-logo.png2.63KB1.88KB▼ 28.31%
assets/img/cloud-computing.png7.98KB7.61KB▼ 4.55%