10% wp-smart-taxonomy

Code Review | WP Smart Taxonomy

WordPress plugin WP Smart Taxonomy scored10%from 54 tests.

About plugin

  • Plugin page: wp-smart-taxonomy
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: Aug 19, 2016
  • Number of updates: 16
  • Update frequency: every 65.5 days
  • Top authors: Dualcube (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,282 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method DC_Wp_Smart_Taxonomy::activate_dc_WP_Smart_Taxonomy() should not be called statically

Server metrics [RAM: ▲0.12MB] [CPU: ▼9.59ms] Passed 4 tests

Server-side resources used by WP Smart Taxonomy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.21 ▼3.46
Dashboard /wp-admin3.58 ▲0.2351.73 ▼12.69
Posts /wp-admin/edit.php3.69 ▲0.3450.84 ▲0.65
Add New Post /wp-admin/post-new.php5.73 ▼0.1677.30 ▼22.84
Media Library /wp-admin/upload.php3.50 ▲0.2738.60 ▲1.13

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
dc_WP_Smart_Taxonomy_installed
dc_dc_WP_ST_general_settings_name

Browser metrics Passed 4 tests

WP Smart Taxonomy: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.38 ▲0.061.71 ▼0.3344.17 ▲0.72
Dashboard /wp-admin2,213 ▲335.60 ▼0.1187.44 ▼7.5175.64 ▲29.28
Posts /wp-admin/edit.php2,118 ▲182.15 ▲0.1134.73 ▼6.9434.44 ▼2.31
Add New Post /wp-admin/post-new.php6,326 ▲4,77225.99 ▲2.79990.59 ▲317.3052.96 ▼2.61
Media Library /wp-admin/upload.php1,409 ▲154.15 ▼0.23100.49 ▼0.3674.13 ▲26.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method DC_Wp_Smart_Taxonomy::deactivate_dc_WP_Smart_Taxonomy() should not be called statically
  • The uninstall procedure has failed, leaving 7 options in the database
    • dc_dc_WP_ST_general_settings_name
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt might help

wp-smart-taxonomy/WP_Smart_Taxonomy.php 92% from 13 tests

Analyzing the main PHP file in "WP Smart Taxonomy" version 1.1.0
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-smart-taxonomy.php" instead of "WP_Smart_Taxonomy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,333 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP102852611,079
JavaScript4121155
CSS39165
PO File1101334

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity35.00
▷ Minimum class complexity2.00
▷ Maximum class complexity137.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods63
▷ Static methods00.00%
▷ Public methods63100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/jquery/upload/images/Placeholder.png4.94KB2.59KB▼ 47.59%
assets/images/dualcube.png3.29KB0.65KB▼ 80.17%
assets/images/dualcube_logo.png3.86KB3.47KB▼ 9.97%
assets/images/dclogo.png3.46KB0.84KB▼ 75.80%
(invalid) assets/images/question_mark.png0.86KB0.00KB▼ 100.00%