84% dbisso-cfs-taxonomy-field

Code Review | CFS Taxonomy Field Add-on

WordPress plugin CFS Taxonomy Field Add-on scored84%from 54 tests.

About plugin

  • Plugin page: dbisso-cfs-taxono...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0
  • WordPress version: 6.3.1
  • First release: Nov 9, 2014
  • Latest release: Nov 13, 2014
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: dbisso (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.26ms] Passed 4 tests

An overview of server-side resources used by CFS Taxonomy Field Add-on
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.85 ▼9.01
Dashboard /wp-admin3.31 ▲0.0148.79 ▼4.66
Posts /wp-admin/edit.php3.36 ▲0.0151.05 ▼0.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.72 ▼2.74
Media Library /wp-admin/upload.php3.24 ▲0.0138.36 ▲0.99

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

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

Browser metrics Passed 4 tests

CFS Taxonomy Field Add-on: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.181.75 ▼0.2543.88 ▲0.91
Dashboard /wp-admin2,195 ▲275.62 ▲0.0290.65 ▼9.8438.07 ▼5.05
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0440.50 ▲3.2436.70 ▼1.60
Add New Post /wp-admin/post-new.php1,532 ▲423.07 ▼0.07696.32 ▼17.0964.81 ▲10.34
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0194.90 ▼23.2144.75 ▼4.46

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dbisso-cfs-taxonomy-field/index.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'cfs_field' not found in wp-content/plugins/dbisso-cfs-taxonomy-field/taxonomy.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Category_Checklist' not found in wp-content/plugins/dbisso-cfs-taxonomy-field/cfs_category_checklist_walker.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: custom field suite, cfs, taxonomy

dbisso-cfs-taxonomy-field/index.php 92% from 13 tests

The entry point to "CFS Taxonomy Field Add-on" version 1.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dbisso-cfs-taxonomy-field.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected141 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32426128
JSON11013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods327.27%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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