84% exchange-addon-exporter

Code Review | iThemes Exchange - Store Exporter

WordPress plugin iThemes Exchange - Store Exporter scored84%from 54 tests.

About plugin

  • Plugin page: exchange-addon-ex...
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-5.0
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Dec 10, 2018
  • Number of updates: 19
  • Update frequency: every 87.6 days
  • Top authors: visser (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,990 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.19ms] Passed 4 tests

A check of server-side resources used by iThemes Exchange - Store Exporter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.72 ▼0.44
Dashboard /wp-admin3.31 ▲0.0152.13 ▼0.38
Posts /wp-admin/edit.php3.36 ▲0.0048.19 ▼1.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.84 ▼6.51
Media Library /wp-admin/upload.php3.23 ▲0.0033.48 ▼4.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by iThemes Exchange - Store Exporter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.23 ▼0.061.92 ▼0.5246.26 ▲4.77
Dashboard /wp-admin2,195 ▲185.57 ▼0.0894.45 ▼4.9039.88 ▼3.16
Posts /wp-admin/edit.php2,100 ▲32.02 ▼0.0634.91 ▼1.1235.92 ▼1.77
Add New Post /wp-admin/post-new.php1,526 ▼223.59 ▲0.34636.35 ▼44.7851.50 ▼5.75
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0196.15 ▼19.4943.98 ▼3.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 41× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      include_once(ITE_CE_PATHincludes/export-csv.php): failed to open stream: No such file or directory in wp-content/plugins/exchange-addon-exporter/includes/functions.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/exchange-addon-exporter/includes/product.php:2
    • > PHP Warning
      Use of undefined constant ITE_CE_PATH - assumed 'ITE_CE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/exchange-addon-exporter/includes/functions.php on line 5
    • > PHP Warning
      include_once(ITE_CE_PATHincludes/product.php): failed to open stream: No such file or directory in wp-content/plugins/exchange-addon-exporter/includes/functions.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/exchange-addon-exporter/templates/admin/tabs-archive.php:2
    • > PHP Warning
      Use of undefined constant ITE_CE_PATH - assumed 'ITE_CE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/exchange-addon-exporter/includes/functions.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exchange-addon-exporter/includes/common-dashboard_widgets.php:19
    • > PHP Warning
      include_once(): Failed opening 'ITE_CE_PATHincludes/formatting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/exchange-addon-exporter/includes/functions.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/exchange-addon-exporter/templates/admin/tabs-overview.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/exchange-addon-exporter/includes/functions.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Store Exporter is an iThemes Exchange compatible Addon), #2 (The Export screen with export types and exportable columns), #3 (The Settings screen includes options to alter the formatting of the export file)
You can look at the official readme.txt

exchange-addon-exporter/exporter.php 92% from 13 tests

"iThemes Exchange - Store Exporter" version 1.3.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("exchange-addon-exporter.php" instead of "exporter.php")

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
Good job! No executable or dangerous file extensions detected3,968 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP237152723,588
JavaScript22172212
CSS31111168

PHP code Passed 2 tests

An short overview of 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.32
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%
Functions104
▷ Named functions104100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/exporter50px.png2.75KB1.76KB▼ 35.79%