Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.78ms] Passed 4 tests
A check of server-side resources used by Linkmarklet
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.47 ▼6.21 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.11 ▼4.83 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 52.07 ▼2.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.86 ▼17.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.52 ▲1.69 |
Linkmarklet /wp-admin/options-general.php?page=linkmarklet/linkmarklet.php | 3.23 | 36.20 |
Server storage [IO: ▲0.15MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Linkmarklet: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▲0.05 | 1.67 ▼0.02 | 43.57 ▲3.20 |
Dashboard /wp-admin | 2,196 ▲28 | 5.63 ▲0.00 | 91.65 ▲5.26 | 38.87 ▼7.00 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▼0.02 | 39.17 ▼3.89 | 34.25 ▼11.04 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 23.02 ▲0.33 | 683.22 ▲24.08 | 68.09 ▲10.96 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.05 | 98.04 ▼15.61 | 50.17 ▲2.30 |
Linkmarklet /wp-admin/options-general.php?page=linkmarklet/linkmarklet.php | 967 | 2.00 | 25.73 | 33.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/linkmarklet/index.php
- > /wp-content/plugins/linkmarklet/remove-this.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/linkmarklet/linkmarklet-options.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/linkmarklet/linkmarklet.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: adopt-me, linkblog, press this, link
linkmarklet/linkmarklet.php Passed 13 tests
The main file in "Linkmarklet" v. 0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
126 characters long description:
Alternative to Press This! specifically geared to linkblogging. Quickly post while saving a link to a Custom Field you define.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,877 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 33 | 50 | 1,142 |
PHP | 5 | 126 | 59 | 666 |
Markdown | 2 | 31 | 0 | 69 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
14 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
screenshot-1.png | 42.73KB | 16.60KB | ▼ 61.14% |
images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |