68% edit-post-link

Code Review | Edit Post Link

WordPress plugin Edit Post Link scored68%from 54 tests.

About plugin

  • Plugin page: edit-post-link
  • Plugin version: 0.2.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 28, 2013
  • Latest release: Aug 5, 2022
  • Number of updates: 21
  • Update frequency: every 157.1 days
  • Top authors: rafaelfunchal (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,380 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.91MB] [CPU: ▼52.47ms] Passed 4 tests

Server-side resources used by Edit Post Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.395.16 ▼43.44
Dashboard /wp-admin2.10 ▼1.218.54 ▼41.20
Posts /wp-admin/edit.php2.10 ▼1.267.24 ▼41.42
Add New Post /wp-admin/post-new.php2.10 ▼3.797.76 ▼83.82
Media Library /wp-admin/upload.php2.10 ▼1.136.99 ▼27.21
Edit Post Link /wp-admin/options-general.php?page=EditPostLink_PluginSettings2.107.35

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
EditPostLink_Plugin_edit-post-link-position
EditPostLink_Plugin_edit-post-link-styles
db_upgraded
widget_recent-posts
EditPostLink_Plugin_edit-post-link-type
EditPostLink_Plugin__version
can_compress_scripts
EditPostLink_Plugin__installed
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Edit Post Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.20 ▼0.081.68 ▼0.0240.43 ▼8.70
Dashboard /wp-admin2,201 ▲325.64 ▼0.0189.70 ▼17.9640.21 ▼4.35
Posts /wp-admin/edit.php2,106 ▲61.95 ▼0.0635.72 ▼1.7332.24 ▲0.90
Add New Post /wp-admin/post-new.php1,531 ▲222.93 ▼0.12586.87 ▼16.1757.64 ▼5.61
Media Library /wp-admin/upload.php1,406 ▲34.18 ▲0.0096.90 ▼2.6241.11 ▼3.33
Edit Post Link /wp-admin/options-general.php?page=EditPostLink_PluginSettings1,2712.3960.6225.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the edit-post-link-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 11 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • EditPostLink_Plugin_edit-post-link-type
    • EditPostLink_Plugin__installed
    • EditPostLink_Plugin_edit-post-link-position
    • EditPostLink_Plugin__version
    • EditPostLink_Plugin_edit-post-link-styles
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=EditPostLink_PluginSettings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the color-picker-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=EditPostLink_PluginSettings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the edit-post-link-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/edit-post-link/edit-post-link.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: link, post, button, edit

edit-post-link/edit-post-link.php Passed 13 tests

The main file in "Edit Post Link" v. 0.2.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
A plugin to insert a stylized link to edit posts and pages

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
Good job! No executable or dangerous file extensions detected698 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8127424519
PO File1306972
CSS12664
JavaScript22043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods74
▷ Static methods00.00%
▷ Public methods4662.16%
▷ Protected methods2837.84%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin