89% copy-permalink-to-clipboard

Code Review | Copy Permalink To Clipboard

WordPress plugin Copy Permalink To Clipboard scored89%from 54 tests.

About plugin

  • Plugin page: copy-permalink-to...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.8
  • WordPress version: 6.3.1
  • First release: Aug 12, 2021
  • Latest release: Aug 12, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: korchiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /854 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.00MB] [CPU: ▼0.72ms] Passed 4 tests

A check of server-side resources used by Copy Permalink To Clipboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.21 ▲2.34
Dashboard /wp-admin3.31 ▲0.0046.89 ▼7.18
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▲1.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.49 ▲0.55
Media Library /wp-admin/upload.php3.23 ▲0.0035.28 ▲2.23

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Copy Permalink To Clipboard
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.251.62 ▼0.2758.97 ▲12.21
Dashboard /wp-admin2,206 ▲214.86 ▼0.98108.40 ▼11.7341.27 ▼2.76
Posts /wp-admin/edit.php2,086 ▼02.00 ▼0.0240.53 ▲4.1833.95 ▼0.07
Add New Post /wp-admin/post-new.php1,533 ▲1923.11 ▲5.60645.03 ▼62.2458.88 ▲6.05
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0595.27 ▼3.8942.74 ▼2.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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 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
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === copy-permalink-to-clipboard === )
You can take inspiration from this readme.txt

copy-permalink-to-clipboard/copy-permalink-clipboard.php 92% from 13 tests

"Copy Permalink To Clipboard" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("copy-permalink-to-clipboard.php" instead of "copy-permalink-clipboard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131241

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin