72% wp-export-categories-taxonomies

Code Review | WP Export Categories & Taxonomies

WordPress plugin WP Export Categories & Taxonomies scored72%from 54 tests.

About plugin

  • Plugin page: wp-export-categor...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2013
  • Latest release: Jun 25, 2014
  • Number of updates: 11
  • Update frequency: every 17.5 days
  • Top authors: timersys (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

900+ active /21,208 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.03ms] Passed 4 tests

An overview of server-side resources used by WP Export Categories & Taxonomies
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.23 ▼9.78
Dashboard /wp-admin3.44 ▲0.1349.07 ▼0.87
Posts /wp-admin/edit.php3.55 ▲0.1949.65 ▼1.41
Add New Post /wp-admin/post-new.php6.02 ▲0.13100.19 ▼2.42
Media Library /wp-admin/upload.php3.36 ▲0.1337.13 ▼2.52
Wp Export Cats & Taxs /wp-admin/tools.php?page=ect3.3232.99

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
ect_settings
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Export Categories & Taxonomies
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.381.64 ▼0.1539.85 ▲0.01
Dashboard /wp-admin2,210 ▲224.85 ▼0.05104.02 ▼1.5940.46 ▼2.63
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0537.25 ▼1.7040.38 ▲7.51
Add New Post /wp-admin/post-new.php1,537 ▲2323.19 ▲5.61616.09 ▼83.4448.79 ▼7.69
Media Library /wp-admin/upload.php1,389 ▲14.18 ▼0.0195.70 ▼17.8341.49 ▼3.97
Wp Export Cats & Taxs /wp-admin/tools.php?page=ect9112.2727.7341.90

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • ect_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)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=ect
    • > Notice in wp-content/plugins/wp-export-categories-taxonomies/admin/ECT_Admin_Base.php+217
    Undefined variable: i
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=ect
    • > Notice in wp-content/plugins/wp-export-categories-taxonomies/admin/ECT_Admin_Base.php+218
    Undefined index: yes
    • > GET request to /wp-admin/tools.php?page=ect
    • > Notice in wp-content/plugins/wp-export-categories-taxonomies/admin/wp-base/sidebar.php+9
    Undefined property: WP_Ect_Admin::$_credits

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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-export-categories-taxonomies/admin/wp-base/fields.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-export-categories-taxonomies/admin/wp-base/sidebar.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-export-categories-taxonomies/admin/wp-base/header.php:3

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=ect
    • > 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=ect:281: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=ect
    • > 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 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: export tags, export, category export, export categories, categories...

wp-export-categories-taxonomies/wp-export-categories.php 77% from 13 tests

The primary PHP file in "WP Export Categories & Taxonomies" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-export-categories-taxonomies.php" instead of "wp-export-categories.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected946 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP10308454752
JavaScript31810123
CSS10064
Markdown1407

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity34.00
▷ Minimum class complexity12.00
▷ Maximum class complexity65.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods725.00%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.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