84% export-media-urls

Code Review | Export Media URLs

WordPress plugin Export Media URLs scored84%from 54 tests.

About plugin

  • Plugin page: export-media-urls
  • Plugin version: 2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2020
  • Latest release: Nov 11, 2023
  • Number of updates: 14
  • Update frequency: every 91.7 days
  • Top authors: Atlas_Gondal (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

3,000+ active /13,329 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.27ms] Passed 4 tests

Server-side resources used by Export Media URLs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.40 ▼1.53
Dashboard /wp-admin3.39 ▲0.0446.22 ▼10.16
Posts /wp-admin/edit.php3.44 ▲0.0846.91 ▼2.62
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.05 ▼6.77
Media Library /wp-admin/upload.php3.31 ▲0.0836.23 ▲4.69
Export Media URLs /wp-admin/tools.php?page=extract-media-urls-settings3.2831.70

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Export Media URLs: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7414.57 ▲0.232.12 ▲0.5138.29 ▼3.75
Dashboard /wp-admin2,201 ▲245.62 ▲0.0989.02 ▼5.4041.11 ▲0.09
Posts /wp-admin/edit.php2,106 ▲32.08 ▲0.0639.57 ▼1.4238.96 ▲2.00
Add New Post /wp-admin/post-new.php1,531 ▲223.15 ▼0.02601.46 ▼31.3357.17 ▲8.67
Media Library /wp-admin/upload.php1,406 ▲64.14 ▼0.0998.32 ▼2.3640.73 ▼5.33
Export Media URLs /wp-admin/tools.php?page=extract-media-urls-settings1,0082.0524.2630.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Export_Media_URLs\\plugin_dir_path() in wp-content/plugins/export-media-urls/classes/class-export-media-urls-admin.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: extract media urls, csv, utilities, export media urls, media links...

export-media-urls/export-media-urls.php 92% from 13 tests

The main file in "Export Media URLs" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 247 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin565 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP314037406
CSS1340159

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity31.00
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity6.45
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods654.55%
▷ Protected methods00.00%
▷ Private methods545.45%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants17.14%
▷ Class constants1392.86%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin