62% frontend-post-submission-manager-lite

Code Review | Frontend Posting WordPress Plugin - Frontend Post Submission Manager Lite

WordPress plugin Frontend Posting WordPress Plugin - Frontend Post Submission Manager Lite scored62%from 54 tests.

About plugin

  • Plugin page: frontend-post-sub...
  • Plugin version: 1.1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Aug 7, 2020
  • Latest release: Dec 1, 2023
  • Number of updates: 26
  • Update frequency: every 46.7 days
  • Top authors: wpshuffle (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /36,938 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▲1.80ms] Passed 4 tests

A check of server-side resources used by Frontend Posting WordPress Plugin - Frontend Post Submission Manager Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2649.78 ▲9.34
Dashboard /wp-admin3.74 ▲0.4053.24 ▼7.49
Posts /wp-admin/edit.php3.76 ▲0.4157.00 ▲11.93
Add New Post /wp-admin/post-new.php6.23 ▲0.3591.39 ▼0.93
Media Library /wp-admin/upload.php3.57 ▲0.3440.44 ▲6.27
About /wp-admin/admin.php?page=fpsml-about3.5637.52
Settings /wp-admin/admin.php?page=fpsml-settings3.5638.08
All Forms /wp-admin/admin.php?page=fpsm3.5639.50
Help /wp-admin/admin.php?page=fpsml-help3.5636.82
Upgrade to PRO /wp-admin/admin.php?page=fpsml-upgrade3.5736.98

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 171 new files
Database: 1 new table, 7 new options
New tables
wp_fpsm_forms
New WordPress options
fpsml_plugin_install_date
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Frontend Posting WordPress Plugin - Frontend Post Submission Manager Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,021 ▲27414.83 ▲0.562.23 ▲0.4438.60 ▼5.33
Dashboard /wp-admin2,411 ▲2306.54 ▲0.82122.13 ▲18.6242.95 ▲1.30
Posts /wp-admin/edit.php2,351 ▲2543.63 ▲1.6559.45 ▲23.8334.08 ▼0.51
Add New Post /wp-admin/post-new.php6,289 ▲4,76326.14 ▲2.92905.61 ▲307.5238.99 ▼8.06
Media Library /wp-admin/upload.php1,482 ▲824.43 ▲0.2885.21 ▼14.1541.56 ▲1.64
About /wp-admin/admin.php?page=fpsml-about1,2003.3948.9150.94
Settings /wp-admin/admin.php?page=fpsml-settings1,1163.3943.8835.50
All Forms /wp-admin/admin.php?page=fpsm1,1913.3445.7853.49
Help /wp-admin/admin.php?page=fpsml-help1,1663.3348.0136.71
Upgrade to PRO /wp-admin/admin.php?page=fpsml-upgrade1,3073.3343.1544.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_fpsm_forms
  • Zombie WordPress options were found after uninstall: 7 options
    • fpsml_plugin_install_date
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% 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 0% from 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
Please fix the following
  • 32× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/classes/admin/class-fpsml-activation.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/js-templates.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/classes/class-fpsml-shortcode.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/login-types/login-page-redirect.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/cores/fpsml-metabox-render.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/forms/form-edit-sections/upgrade-to-pro.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/frontend-preview-template.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/forms/form-list.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/login-types/login-message.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/classes/admin/class-fpsml-admin.php
  • 67× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/forms/form-edit-sections/layout-settings.php:6
    • > PHP Notice
      Undefined variable: field_details in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/form-fields/front-custom_field.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/form-fields/front-author_email.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/form-fields/front-taxonomy.php on line 5
    • > PHP Warning
      Use of undefined constant FPSML_PATH - assumed 'FPSML_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/js-templates.php on line 2
    • > PHP Warning
      Use of undefined constant FPSML_PATH - assumed 'FPSML_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/forms/form-edit-sections/upgrade-to-pro.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/forms/form-edit-sections/basic-settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/js-templates/tmpl-custom-field-holder.php:3
    • > PHP Warning
      include(FPSML_PATH/includes/views/frontend/login-types/login-form.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/login-html.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/about.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=fpsm
    • > Network (severe)
    wp-content/plugins/frontend-post-submission-manager-lite/assets/images/pro.svg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: You can look at the official readme.txt

frontend-post-submission-manager-lite/frontend-post-submission-manager-lite.php Passed 13 tests

The main PHP file in "Frontend Posting WordPress Plugin - Frontend Post Submission Manager Lite" ver. 1.1.9 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
A plugin to submit and manage WordPress posts from frontend with or without logging in

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin62,771 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
SVG1201245,772
CSS223,79915910,795
PHP753647114,075
JavaScript43083821,740
HTML100389

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity13.31
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods116
▷ Static methods10.86%
▷ Public methods11397.41%
▷ Protected methods00.00%
▷ Private methods32.59%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
assets/css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
assets/css/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
assets/css/images/ui-icons_ffffff_256x240.png6.17KB4.18KB▼ 32.17%
assets/css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%