66% front-end-post-edit

Code Review | custom-post-edit

WordPress plugin custom-post-edit scored66%from 54 tests.

About plugin

  • Plugin page: front-end-post-edit
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Oct 13, 2014
  • Latest release: Oct 13, 2014
  • Number of updates: 18
  • Update frequency: N/A
  • Top authors: vimes1984 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,124 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.39ms] Passed 4 tests

An overview of server-side resources used by custom-post-edit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.20 ▼3.20
Dashboard /wp-admin3.35 ▲0.0445.44 ▼0.70
Posts /wp-admin/edit.php3.40 ▲0.0445.32 ▼3.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.36 ▼11.11
Media Library /wp-admin/upload.php3.27 ▲0.0437.10 ▼4.06
custom post edit /wp-admin/plugins.php?page=custom-post-edit3.3330.41

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for custom-post-edit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲12514.11 ▼0.1320.67 ▲18.5142.77 ▼1.22
Dashboard /wp-admin2,207 ▲225.82 ▼0.04106.85 ▲0.4939.54 ▼1.48
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0435.49 ▼1.0132.50 ▼4.08
Add New Post /wp-admin/post-new.php1,548 ▲3422.73 ▲5.18664.59 ▼23.4051.83 ▼7.85
Media Library /wp-admin/upload.php1,389 ▼24.20 ▲0.06101.83 ▲0.4042.86 ▲1.31
custom post edit /wp-admin/plugins.php?page=custom-post-edit7602.0723.8525.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/plugins.php?page=custom-post-edit
    • > 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/plugins.php?page=custom-post-edit
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/front-end-post-edit/views/public.php
    • > /wp-content/plugins/front-end-post-edit/includes/customedit.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/front-end-post-edit/views/admin.php:17
    • > PHP Notice
      Undefined index: posttoedit in wp-content/plugins/front-end-post-edit/includes/customedit.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/plugins.php?page=custom-post-edit
    • > Network (severe)
    wp-content/plugins/front-end-post-edit/css/admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% 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:
  • Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
You can look at the official readme.txt

front-end-post-edit/custom-post-edit.php 85% from 13 tests

"custom-post-edit" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("front-end-post-edit.php" instead of "custom-post-edit.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected358 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript314108173
PHP756213133
Markdown123042
JSON20010

PHP code Passed 2 tests

Analyzing 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.12
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods320.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected