10% front-end-editor

Code Review | Front-end Editor

WordPress plugin Front-end Editor scored10%from 54 tests.

About plugin

  • Plugin page: front-end-editor
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.6
  • WordPress version: 6.3.1
  • First release: Mar 31, 2009
  • Latest release: Jul 23, 2013
  • Number of updates: 714
  • Update frequency: every 2.8 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

1,000+ active /270,835 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/front-end-editor/php/fields/post.php+182
    Declaration of FEE_Field_Terms::wrap($content, $taxonomy, $before, $sep, $after) should be compatible with FEE_Field_Post::wrap($content, $post_id = 0)

Server metrics [RAM: ▼1.84MB] [CPU: ▼54.58ms] Passed 4 tests

An overview of server-side resources used by Front-end Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.80 ▼28.45
Dashboard /wp-admin2.16 ▼1.147.64 ▼36.96
Posts /wp-admin/edit.php2.17 ▼1.198.96 ▼50.33
Add New Post /wp-admin/post-new.php2.16 ▼3.726.80 ▼91.71
Media Library /wp-admin/upload.php2.16 ▼1.069.56 ▼39.30
Front-end Editor /wp-admin/options-general.php?page=front-end-editor2.1710.80

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,538 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Front-end Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,856 ▲2,08522.49 ▲8.19203.30 ▲201.3357.66 ▲16.06
Dashboard /wp-admin2,210 ▲224.86 ▼1.01100.43 ▼43.0841.52 ▼16.44
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0534.78 ▼21.9232.26 ▼17.03
Add New Post /wp-admin/post-new.php1,545 ▲1218.26 ▼4.81636.56 ▼103.0854.55 ▼2.77
Media Library /wp-admin/upload.php1,392 ▲14.27 ▲0.04101.23 ▼17.8742.67 ▼10.65
Front-end Editor /wp-admin/options-general.php?page=front-end-editor1,2632.2945.9333.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/front-end-editor/php/fields/post.php+182
    Declaration of FEE_Field_Terms::wrap($content, $taxonomy, $before, $sep, $after) should be compatible with FEE_Field_Post::wrap($content, $post_id = 0)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/post.php+182
    Declaration of FEE_Field_Terms::wrap($content, $taxonomy, $before, $sep, $after) should be compatible with FEE_Field_Post::wrap($content, $post_id = 0)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/post.php+281
    Declaration of FEE_Field_Tags::wrap($content, $before, $sep, $after) should be compatible with FEE_Field_Terms::wrap($content, $taxonomy, $before, $sep, $after)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/post.php+290
    Declaration of FEE_Field_Category::wrap($content, $sep, $parents) should be compatible with FEE_Field_Terms::wrap($content, $taxonomy, $before, $sep, $after)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/post.php+299
    Declaration of FEE_Field_Post_Thumbnail::wrap($html, $post_id, $post_thumbnail_id, $size) should be compatible with FEE_Field_Post::wrap($content, $post_id = 0)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/post.php+352
    Declaration of FEE_Field_Post_Meta::wrap($data, $post_id, $key, $ui, $single) should be compatible with FEE_Field_Post::wrap($content, $post_id = 0)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/widget.php+10
    Declaration of FEE_Field_Widget::wrap($params) should be compatible with FEE_Field_Base::wrap($content, $data)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/other.php+10
    Declaration of FEE_Field_Comment::wrap($content) should be compatible with FEE_Field_Base::wrap($content, $data)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/other.php+70
    Declaration of FEE_Field_Term_Field::wrap($content, $term_id, $taxonomy) should be compatible with FEE_Field_Base::wrap($content, $data)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/other.php+115
    Declaration of FEE_Field_Single_Title::wrap($title) should be compatible with FEE_Field_Term_Field::wrap($content, $term_id, $taxonomy)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > POST request to /wp-cron.php?doing_wp_cron=1696396187.1515920162200927734375
    • > Warning in wp-content/plugins/front-end-editor/php/fields/other.php+231
    Declaration of FEE_Field_Option::wrap($content, $key, $ui) should be compatible with FEE_Field_Base::wrap($content, $data)
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=front-end-editor
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'FEE_Field_Base' not found in wp-content/plugins/front-end-editor/php/fields/post.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FEE_Field_Base' not found in wp-content/plugins/front-end-editor/php/fields/other.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'FEE_Field_Base' not found in wp-content/plugins/front-end-editor/php/fields/widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/front-end-editor/lib/scb/load.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/front-end-editor/lib/scb/BoxesPage.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'scbBoxesPage' not found in wp-content/plugins/front-end-editor/admin/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/front-end-editor/lib/scb/Widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/front-end-editor/test.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: inline, visual, editor, wysiwyg, edit-in-place

front-end-editor/front-end-editor.php Passed 13 tests

The primary PHP file in "Front-end Editor" version 2.3.1 is used by WordPress to initiate all plugin functionality
71 characters long description:
Allows you to edit your posts without going through the admin interface

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 plugin319,969 lines of code in 340 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23358,569116,679311,059
CSS413226023,205
PHP221,1461,4653,087
PO File231,4512,4142,266
Markdown10740208
JSON94092
HTML26052

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.64
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes44
▷ Abstract classes818.18%
▷ Concrete classes3681.82%
▷ Final classes00.00%
Methods329
▷ Static methods8826.75%
▷ Public methods24875.38%
▷ Protected methods6319.15%
▷ Private methods185.47%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants15
▷ Global constants320.00%
▷ Class constants1280.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
938 compressed PNG files occupy 0.60MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/aloha-editor/plugins/extra/flag-icons/img/flags/dm.png0.50KB0.68KB0.00%
lib/aloha-editor/plugins/extra/flag-icons/img/flags/hm.png0.57KB0.75KB0.00%
lib/aloha-editor/plugins/extra/linkbrowser/img/flags/wf.png0.43KB0.65KB0.00%
lib/aloha-editor/plugins/extra/linkbrowser/img/flags/gh.png0.33KB0.68KB0.00%
lib/aloha-editor/plugins/extra/linkbrowser/img/flags/lu.png0.33KB0.67KB0.00%