84% marketpress-category-copier

Code Review | Bulk Marketpress Product Category Copier

WordPress plugin Bulk Marketpress Product Category Copier scored84%from 54 tests.

About plugin

  • Plugin page: marketpress-categ...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Nov 7, 2014
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: arbet01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.05ms] Passed 4 tests

Server-side resources used by Bulk Marketpress Product Category Copier
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.96 ▼2.21
Dashboard /wp-admin3.35 ▲0.0155.52 ▼14.81
Posts /wp-admin/edit.php3.46 ▲0.1151.84 ▼1.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.51 ▼10.03
Media Library /wp-admin/upload.php3.27 ▲0.0539.71 ▲3.23

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

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

Browser metrics Passed 4 tests

Bulk Marketpress Product Category Copier: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.69 ▲0.141.88 ▼0.1643.24 ▼0.90
Dashboard /wp-admin2,192 ▲125.55 ▼0.1784.13 ▼5.3739.35 ▼2.29
Posts /wp-admin/edit.php2,097 ▼61.99 ▼0.0334.89 ▼4.8834.73 ▼1.51
Add New Post /wp-admin/post-new.php1,545 ▲1923.13 ▲5.55645.90 ▼58.8256.44 ▼0.31
Media Library /wp-admin/upload.php1,400 ▼04.30 ▲0.0993.96 ▼9.6541.86 ▼5.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
Good news, no errors were detected

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
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/marketpress-category-copier/inc/options.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/marketpress-category-copier/lib/MarketpressCategoryCopier.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/marketpress-category-copier/inc/log.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/marketpress-category-copier/marketpress-category-copier.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/marketpress-category-copier/lib/MarketpressCategoryWalker.php:8

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 96% 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
6 plugin tags: marketpress, multisite, copier, copy, bulk...

marketpress-category-copier/marketpress-category-copier.php 92% from 13 tests

The principal PHP file in "Bulk Marketpress Product Category Copier" v. 1.2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
No dangerous file extensions were detected6,538 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
HTML36403,167
JavaScript6245682,359
CSS46336653
PHP5189177359

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.50
▷ Minimum class complexity18.00
▷ Maximum class complexity19.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1372.22%
▷ Protected methods00.00%
▷ Private methods527.78%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/chosen.jquery/chosen-sprite.png0.53KB0.88KB0.00%
inc/chosen.jquery/docsupport/oss-credit.png4.30KB3.26KB▼ 24.02%
inc/chosen.jquery/chosen-sprite@2x.png0.72KB0.83KB0.00%
inc/chosen.jquery/docsupport/chosen.png1.47KB2.08KB0.00%