90% wp-copy-media-url

Code Review | WP Copy Media URL

WordPress plugin WP Copy Media URL scored90%from 54 tests.

About plugin

  • Plugin page: wp-copy-media-url
  • Plugin version: 2.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2018
  • Latest release: Jan 12, 2023
  • Number of updates: 6
  • Update frequency: every 291.8 days
  • Top authors: ashishajani (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /3,051 total downloads

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.09MB] [CPU: ▼3.55ms] Passed 4 tests

Analyzing server-side resources used by WP Copy Media URL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.25 ▼6.69
Dashboard /wp-admin3.40 ▲0.1048.79 ▼4.18
Posts /wp-admin/edit.php3.52 ▲0.1650.53 ▲0.25
Add New Post /wp-admin/post-new.php5.98 ▲0.1097.56 ▼3.56
Media Library /wp-admin/upload.php3.32 ▲0.0938.52 ▲0.93
WordPress Copy Media URL /wp-admin/options-general.php?page=wp-cmu-options3.2933.91

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 13 new options
New WordPress options
wp_cmu_link_text_copied
widget_theysaidso_widget
db_upgraded
wp_cmu_button_color
wp_cmu_button_text_color
widget_recent-posts
theysaidso_admin_options
wp_cmu_button_text_copied
widget_recent-comments
wp_cmu_link_text
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Copy Media URL
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲6014.18 ▼0.381.62 ▼0.4045.98 ▲1.43
Dashboard /wp-admin2,246 ▲756.11 ▲0.57130.56 ▲39.7539.28 ▼2.25
Posts /wp-admin/edit.php2,154 ▲513.12 ▲1.1453.00 ▲15.1536.65 ▼1.35
Add New Post /wp-admin/post-new.php1,545 ▲1723.35 ▲0.25658.65 ▼10.0337.01 ▼24.22
Media Library /wp-admin/upload.php1,417 ▲174.05 ▼0.1688.15 ▼13.5444.08 ▼2.42
WordPress Copy Media URL /wp-admin/options-general.php?page=wp-cmu-options1,0742.8340.7633.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: copy media url, single click copy media url, custom post type copy media url, wordpress copy media url, one click copy media url...

wp-copy-media-url/wp-copy-media-url.php Passed 13 tests

The main file in "WP Copy Media URL" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
WordPress plugin for copy media url on a single click.

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
There were no executable files found in this plugin554 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14298462
JavaScript16048
CSS11144

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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