78% 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 scored 78% from 54 tests.

About plugin

  • Plugin page: frontend-post-sub...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 5.8.1
  • First release: Aug 7, 2020
  • Latest release: Nov 1, 2021
  • Number of updates: 13
  • Update frequency: every 34.9 days
  • Top authors: wpshuffle (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 2,988 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
Install script ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼132.23ms] 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.11 ▲0.2738.41 ▲10.00
Dashboard /wp-admin3.48 ▲0.4239.52 ▼4.14
Posts /wp-admin/edit.php3.50 ▲0.3953.69 ▲10.35
Add New Post /wp-admin/post-new.php5.74 ▲0.3197.97 ▼539.64
Media Library /wp-admin/upload.php3.33 ▲0.3238.70 ▲4.85
All Forms /wp-admin/admin.php?page=fpsm3.3333.98
About /wp-admin/admin.php?page=fpsml-about3.3338.78
Upgrade to PRO /wp-admin/admin.php?page=fpsml-upgrade3.3436.42
Settings /wp-admin/admin.php?page=fpsml-settings3.3336.60
Help /wp-admin/admin.php?page=fpsml-help3.3335.68

Server storage [IO: ▲8.03MB] [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: 169 new files
Database: 1 new table, no new options
New tables
wp_fpsm_forms

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,999 ▲40318.22 ▲2.519.25 ▼1.7848.25 ▲0.37
Dashboard /wp-admin3,258 ▲3277.51 ▲1.52163.61 ▲22.18116.20 ▲8.06
Posts /wp-admin/edit.php3,056 ▲3174.13 ▲1.4287.98 ▲21.1688.66 ▲0.91
Add New Post /wp-admin/post-new.php1,732 ▼14022.29 ▲3.14266.18 ▼119.27108.31 ▼4.64
Media Library /wp-admin/upload.php1,905 ▲925.15 ▲0.11115.11 ▼33.45118.18 ▼1.06
All Forms /wp-admin/admin.php?page=fpsm1,5754.0479.73120.95
About /wp-admin/admin.php?page=fpsml-about1,5754.1780.3095.47
Upgrade to PRO /wp-admin/admin.php?page=fpsml-upgrade1,7723.9774.92110.80
Settings /wp-admin/admin.php?page=fpsml-settings1,4524.0582.6788.77
Help /wp-admin/admin.php?page=fpsml-help1,5333.9576.89101.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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

Smoke tests 50% 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
  • 31× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/js-templates.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/form-shortcode.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/frontend-post-submission-manager-lite.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/classes/admin/class-fpsml-admin-enqueue.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/form-html.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/classes/class-fpsml-frontend-hooks.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/cores/admin-email-notification.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/classes/class-fpsml-init.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/cores/fpsml-metabox-render.php
    • > /wp-content/plugins/frontend-post-submission-manager-lite/includes/classes/admin/class-fpsml-metabox.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 get_taxonomy() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/form-fields/front-taxonomy.php:6
    • > 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/form-fields/author_name.php:3
    • > 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/form-field-settings.php:7
    • > PHP Warning
      include(): Failed opening 'FPSML_PATH/includes/views/frontend/login-types/login-form.php' for inclusion (include_path='.:/usr/share/php') 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/forms/form-edit-sections/notification-settings.php:4
    • > 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/form-fields/post_title.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/frontend/form-fields/taxonomy-fields/taxonomy-checkbox.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/js-templates/tmpl-textarea.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/forms/form-edit-sections/form-fields/post-display-fields.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/frontend-post-submission-manager-lite/includes/views/backend/help.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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.0.7 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,383 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
SVG1101245,754
CSS223,80515910,558
PHP743576983,942
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.73
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods111
▷ Static methods10.90%
▷ Public methods10897.30%
▷ Protected methods00.00%
▷ Private methods32.70%
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_cc0000_256x240.png4.52KB4.18KB▼ 7.56%
assets/css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
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_777777_256x240.png6.85KB4.18KB▼ 38.94%