10% category-family-tree

Code Review | Category Family Tree

WordPress plugin Category Family Tree scored10%from 54 tests.

About plugin

  • Plugin page: category-family-tree
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.9
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Jun 23, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: nasznjoka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,667 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/category-family-tree/index.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; Category_Family_Tree has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼57.36ms] Passed 4 tests

This is a short check of server-side resources used by Category Family Tree
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.88 ▼39.04
Dashboard /wp-admin2.10 ▼1.206.52 ▼47.84
Posts /wp-admin/edit.php2.10 ▼1.267.50 ▼45.88
Add New Post /wp-admin/post-new.php2.10 ▼3.795.88 ▼96.67
Media Library /wp-admin/upload.php2.10 ▼1.136.04 ▼29.99

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_cat-family-tree-widget

Browser metrics Passed 4 tests

A check of browser resources used by Category Family Tree
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.011.77 ▼0.1547.76 ▲2.55
Dashboard /wp-admin2,195 ▲215.63 ▲0.1085.34 ▼16.7442.19 ▼2.76
Posts /wp-admin/edit.php2,100 ▲32.04 ▲0.0937.17 ▲2.6634.52 ▲0.11
Add New Post /wp-admin/post-new.php1,536 ▲1023.23 ▲0.33641.15 ▼31.3352.56 ▼0.90
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0297.09 ▼11.6443.34 ▼2.95

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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/category-family-tree/index.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; Category_Family_Tree has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_cat-family-tree-widget
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-family-tree/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

category-family-tree/index.php 85% from 13 tests

The entry point to "Category Family Tree" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("category-family-tree.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
Success! There were no dangerous files found in this plugin110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12313110

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin