62% kv-front-post-submission

Code Review | KV Front-end Post Submission

WordPress plugin KV Front-end Post Submission scored62%from 54 tests.

About plugin

  • Plugin page: kv-front-post-sub...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.3
  • WordPress version: 6.3.1
  • First release: Feb 11, 2014
  • Latest release: Apr 21, 2017
  • Number of updates: 45
  • Update frequency: every 27.3 days
  • Top authors: kvvaradha (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,593 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼36.89ms] Passed 4 tests

A check of server-side resources used by KV Front-end Post Submission
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.81 ▲6.21
Dashboard /wp-admin3.08 ▼0.2727.20 ▼36.70
Posts /wp-admin/edit.php3.08 ▼0.2824.71 ▼27.21
Add New Post /wp-admin/post-new.php3.08 ▼2.8123.20 ▼72.64
Media Library /wp-admin/upload.php3.08 ▼0.1626.44 ▼10.99
Kv Front Post Settings /wp-admin/admin.php?page=kv_front_post_settings3.0824.34
Kvcodes /wp-admin/admin.php?page=kvcodes3.0825.90

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

KV Front-end Post Submission: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7813.23 ▼1.131.69 ▼0.0543.30 ▲2.27
Dashboard /wp-admin2,215 ▲335.82 ▼0.0999.72 ▼5.3577.06 ▲34.85
Posts /wp-admin/edit.php2,113 ▲242.00 ▼0.0135.68 ▲0.3633.20 ▼1.11
Add New Post /wp-admin/post-new.php1,540 ▲2123.09 ▲0.13749.88 ▲64.4551.79 ▼1.68
Media Library /wp-admin/upload.php1,409 ▲244.27 ▲0.07104.69 ▲5.4278.08 ▲33.45
Kv Front Post Settings /wp-admin/admin.php?page=kv_front_post_settings9442.0626.1527.13
Kvcodes /wp-admin/admin.php?page=kvcodes1,0123.7864.6258.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=kvcodes
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/kv-front-post-submission/kv_front_post.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=kvcodes
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=kvcodes
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Screenshot of front page Post submit Form.)
The official readme.txt might help

kv-front-post-submission/kv_front_post.php 92% from 13 tests

The entry point to "KV Front-end Post Submission" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("kv-front-post-submission.php" instead of "kv_front_post.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected384 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15034328
CSS12056

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png28.91KB17.36KB▼ 39.96%
images/kv_logo.png1.20KB0.92KB▼ 23.57%