72% export-featured-images

Code Review | Export Featured Images

WordPress plugin Export Featured Images scored72%from 54 tests.

About plugin

  • Plugin page: export-featured-i...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 23, 2013
  • Latest release: May 17, 2014
  • Number of updates: 4
  • Update frequency: every 36.7 days
  • Top authors: timersys (100%)

Code review

54 tests

User reviews

70 reviews

Install metrics

3,000+ active /74,438 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼10.49ms] Passed 4 tests

Server-side resources used by Export Featured Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.86 ▼4.58
Dashboard /wp-admin3.44 ▲0.1043.55 ▼23.55
Posts /wp-admin/edit.php3.55 ▲0.2047.27 ▲4.89
Add New Post /wp-admin/post-new.php6.02 ▲0.1489.04 ▼17.24
Media Library /wp-admin/upload.php3.36 ▲0.1433.93 ▲3.40
Export Featured Images /wp-admin/tools.php?page=wpefi3.3330.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
wpefi_settings
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Export Featured Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.19 ▼0.861.90 ▲0.0737.31 ▼7.63
Dashboard /wp-admin2,210 ▲225.85 ▼0.04105.11 ▼10.9441.71 ▼10.76
Posts /wp-admin/edit.php2,096 ▲72.05 ▼0.0040.12 ▼1.3034.71 ▼3.18
Add New Post /wp-admin/post-new.php1,537 ▲923.21 ▲4.88640.26 ▲32.1767.92 ▲6.96
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.06102.87 ▲6.9046.44 ▲5.86
Export Featured Images /wp-admin/tools.php?page=wpefi9642.2832.4338.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • wpefi_settings

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: post
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: page
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: attachment
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: revision
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: nav_menu_item
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: custom_css
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: customize_changeset
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: oembed_cache
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: user_request
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: wp_block
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: wp_template
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: wp_template_part
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: wp_global_styles
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Notice in wp-content/plugins/export-featured-images/admin/WPEFI_Admin_Base.php+217
    Undefined index: wp_navigation

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/export-featured-images/admin/wp-base/header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/export-featured-images/admin/wp-base/fields.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/export-featured-images/admin/wp-base/sidebar.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'mozilla')" "TypeError: Cannot read properties of undefined (reading 'mozilla')\n at HTMLDocument.\u003Canonymous> (/wp-admin/tools.php?page=wpefi:282:18)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/tools.php?page=wpefi
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'mozilla')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: export featured images, export, export featured, featured image, export images

export-featured-images/export-featured-images.php 85% from 13 tests

The main PHP file in "Export Featured Images" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,044 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP10318580786
JavaScript31810123
PO File1192271
CSS10064

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity33.00
▷ Minimum class complexity12.00
▷ Maximum class complexity65.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods34
▷ Static methods720.59%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.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