84% cc-custom-taxonmy

Code Review | CC Custom Taxonomy

WordPress plugin CC Custom Taxonomy scored 84% from 54 tests.

About plugin

  • Plugin page: cc-custom-taxonmy
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 5.9.2
  • First release: Aug 2, 2019
  • Latest release: Feb 24, 2020
  • Number of updates: 9
  • Update frequency: every 23.0 days
  • Top authors: cuongma111 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.65MB] [CPU: ▼285.01ms] Passed 4 tests

An overview of server-side resources used by CC Custom Taxonomy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.6458.83 ▲6.52
Dashboard /wp-admin4.12 ▲0.7143.51 ▲9.94
Posts /wp-admin/edit.php4.34 ▲0.7056.33 ▲19.55
Add New Post /wp-admin/post-new.php7.56 ▲0.59101.17 ▼1,157.53
Media Library /wp-admin/upload.php3.98 ▲0.6828.84 ▲1.05

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 116 new files
Database: no new tables, 1 new option
New WordPress options
_ccct_options

Browser metrics Passed 4 tests

CC Custom Taxonomy: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,153 ▲43118.44 ▲2.396.08 ▲0.132.15 ▲0.01
Dashboard /wp-admin3,242 ▲3847.85 ▲1.68149.20 ▲5.53153.01 ▼14.60
Posts /wp-admin/edit.php3,066 ▲3725.23 ▲1.9982.95 ▲20.90145.90 ▼0.38
Add New Post /wp-admin/post-new.php1,770 ▲10218.09 ▼0.29369.17 ▼46.72151.45 ▲0.35
Media Library /wp-admin/upload.php1,848 ▲1506.22 ▲0.68112.37 ▼27.95188.67 ▼3.70
General /wp-admin/admin.php?page=cc-custom-taxonomy#tab=11,7005.5188.13107.48
Custom Fields /wp-admin/admin.php?page=cc-custom-taxonomy#tab=21,6915.48100.86109.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • _ccct_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 fix 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 ccct_get_option() in wp-content/plugins/cc-custom-taxonmy/inc/config/taxonomy.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: You can look at the official readme.txt

cc-custom-taxonmy/cc-custom-taxonomy.php 92% from 13 tests

Analyzing the main PHP file in "CC Custom Taxonomy" version 1.0.1
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cc-custom-taxonmy.php" instead of "cc-custom-taxonomy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin25,870 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code
PHP843,0921,40813,343
Sass1589434,514
JavaScript51,2243503,939
CSS42764463,929
PO File16371143
SVG2002

PHP code Passed 2 tests

Analyzing 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.60
Average class complexity22.74
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity6.34
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes57
▷ Abstract classes23.51%
▷ Concrete classes5596.49%
▷ Final classes00.00%
Methods232
▷ Static methods3916.81%
▷ Public methods23199.57%
▷ Protected methods10.43%
▷ Private methods00.00%
Functions28
▷ Named functions28100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%