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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.16 ▼43.44 |
Dashboard /wp-admin | 2.10 ▼1.21 | 8.54 ▼41.20 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.24 ▼41.42 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.76 ▼83.82 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.99 ▼27.21 |
Edit Post Link /wp-admin/options-general.php?page=EditPostLink_PluginSettings | 2.10 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.20 ▼0.08 | 1.68 ▼0.02 | 40.43 ▼8.70 |
Dashboard /wp-admin | 2,201 ▲32 | 5.64 ▼0.01 | 89.70 ▼17.96 | 40.21 ▼4.35 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.95 ▼0.06 | 35.72 ▼1.73 | 32.24 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 22.93 ▼0.12 | 586.87 ▼16.17 | 57.64 ▼5.61 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.18 ▲0.00 | 96.90 ▼2.62 | 41.11 ▼3.33 |
Edit Post Link /wp-admin/options-general.php?page=EditPostLink_PluginSettings | 1,271 | 2.39 | 60.62 | 25.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 127 | 424 | 519 |
PO File | 1 | 30 | 69 | 72 |
CSS | 1 | 2 | 6 | 64 |
JavaScript | 2 | 2 | 0 | 43 |
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 code | 0.34 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 62.16% |
▷ Protected methods | 28 | 37.84% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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