78% frontend-post-submission

Code Review | Frontend Post Submission

WordPress plugin Frontend Post Submission scored 78% from 54 tests.

About plugin

  • Plugin page: frontend-post-sub...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Mar 25, 2017
  • Latest release: Mar 25, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: ughimire1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.14ms] Passed 4 tests

Server-side resources used by Frontend Post Submission
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.03 ▼5.71
Dashboard /wp-admin3.37 ▲0.0748.27 ▼2.93
Posts /wp-admin/edit.php3.49 ▲0.1345.70 ▼8.42
Add New Post /wp-admin/post-new.php5.95 ▲0.0793.48 ▼3.49
Media Library /wp-admin/upload.php3.30 ▲0.0738.19 ▲3.55

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Frontend Post Submission
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲25113.81 ▼0.999.45 ▲7.6038.73 ▼8.63
Dashboard /wp-admin2,215 ▲244.97 ▲0.07100.16 ▼8.1638.29 ▼3.66
Posts /wp-admin/edit.php2,105 ▲162.20 ▲0.1936.95 ▼4.9532.48 ▼10.31
Add New Post /wp-admin/post-new.php1,527 ▲823.32 ▲0.09575.51 ▼113.0732.45 ▼39.77
Media Library /wp-admin/upload.php1,397 ▲154.19 ▼0.0294.17 ▼8.4341.75 ▼3.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/frontend-post-submission/templates/parts/_feature_image.php
    • > /wp-content/plugins/frontend-post-submission/templates/ui-form.php
    • > /wp-content/plugins/frontend-post-submission/templates/parts/_post_title.php
    • > /wp-content/plugins/frontend-post-submission/templates/parts/_author_name.php
  • 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_feature_image.php on line 3
    • > PHP Notice
      Undefined variable: pluginHeading in wp-content/plugins/frontend-post-submission/templates/admin-setting.php on line 2
    • > PHP Notice
      Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_author_name.php on line 3
    • > PHP Notice
      Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_feature_image.php on line 3
    • > PHP Notice
      Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_author_name.php on line 3
    • > PHP Notice
      Undefined variable: label in wp-content/plugins/frontend-post-submission/templates/parts/_post_title.php on line 4
    • > PHP Notice
      Undefined variable: label in wp-content/plugins/frontend-post-submission/templates/parts/_feature_image.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/frontend-post-submission/templates/parts/_post_content.php:13
    • > PHP Notice
      Undefined variable: front_key in wp-content/plugins/frontend-post-submission/templates/parts/_post_title.php on line 3
    • > PHP Notice
      Undefined variable: label in wp-content/plugins/frontend-post-submission/templates/parts/_author_name.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === frontend-post-submission === )
The official readme.txt might help

frontend-post-submission/frontend-post-submission.php 92% from 13 tests

The main PHP file in "Frontend Post Submission" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin600 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP1335959458
CSS1238119
JavaScript210023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.40
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1571.43%
▷ Protected methods00.00%
▷ Private methods628.57%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin