84% category-import-reloaded

Code Review | Category Import Reloaded

WordPress plugin Category Import Reloaded scored84%from 54 tests.

About plugin

  • Plugin page: category-import-r...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2018
  • Latest release: Feb 6, 2021
  • Number of updates: 8
  • Update frequency: every 128.4 days
  • Top authors: nir0ma (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

3,000+ active /18,859 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.02MB] [CPU: ▼2.30ms] Passed 4 tests

This is a short check of server-side resources used by Category Import Reloaded
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.85 ▼2.37
Dashboard /wp-admin3.32 ▲0.0245.07 ▼0.56
Posts /wp-admin/edit.php3.37 ▲0.0247.95 ▲4.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.60 ▼5.74
Media Library /wp-admin/upload.php3.24 ▲0.0231.46 ▼0.52

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Category Import Reloaded
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.29 ▲0.151.62 ▼0.3237.72 ▲0.18
Dashboard /wp-admin2,211 ▲345.59 ▼0.0591.96 ▲1.2039.86 ▲3.05
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.0439.61 ▲4.6736.59 ▼0.49
Add New Post /wp-admin/post-new.php1,539 ▲1323.08 ▼0.09641.20 ▲25.5071.62 ▲18.82
Media Library /wp-admin/upload.php1,416 ▲134.21 ▼0.0398.99 ▲0.2042.49 ▼1.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/category-import-reloaded/inc/admin/views/html-category-import-reloaded-admin-display.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: create, bulk, taxonomy, import, category

category-import-reloaded/category-import-reloaded.php 92% from 13 tests

"Category Import Reloaded" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 212 characters long)

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
There were no executable files found in this plugin496 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11143460397
PO File2232396
JavaScript12293
CSS1050

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods310.34%
▷ Public methods2379.31%
▷ Protected methods00.00%
▷ Private methods620.69%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin