83% custom-fields-to-taxonomies

Code Review | Convert custom fields to custom taxonomies

WordPress plugin Convert custom fields to custom taxonomies scored83%from 54 tests.

About plugin

  • Plugin page: custom-fields-to-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2018
  • Latest release: Jul 29, 2018
  • Number of updates: 4
  • Update frequency: every 7.8 days
  • Top authors: shounakgupte (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /745 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.20ms] Passed 4 tests

This is a short check of server-side resources used by Convert custom fields to custom taxonomies
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.86 ▼4.71
Dashboard /wp-admin3.37 ▲0.0651.08 ▼2.22
Posts /wp-admin/edit.php3.42 ▲0.0646.63 ▼1.81
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.15 ▼20.07
Media Library /wp-admin/upload.php3.29 ▲0.0636.51 ▼0.93

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Convert custom fields to custom taxonomies
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.67 ▲0.262.18 ▲0.6446.79 ▲3.33
Dashboard /wp-admin2,211 ▲345.54 ▼0.1189.86 ▼3.6636.76 ▼6.85
Posts /wp-admin/edit.php2,116 ▲132.02 ▲0.0138.11 ▼1.6430.66 ▼7.15
Add New Post /wp-admin/post-new.php1,539 ▲1123.14 ▼0.04598.00 ▼21.0075.30 ▲16.13
Media Library /wp-admin/upload.php1,416 ▲164.25 ▲0.05106.57 ▲10.2344.65 ▲1.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/custom-fields-to-taxonomies/customfields-to-taxonomies.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed: You can take inspiration from this readme.txt

custom-fields-to-taxonomies/customfields-to-taxonomies.php 85% from 13 tests

"Convert custom fields to custom taxonomies" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-fields-to-taxonomies.php" instead of "customfields-to-taxonomies.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)

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 detected417 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14111232
JavaScript1130136
CSS12049

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected