90% wp-term-families

Code Review | WP Term Family

WordPress plugin WP Term Family scored90%from 54 tests.

About plugin

  • Plugin page: wp-term-families
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 6.3.1
  • First release: Nov 9, 2015
  • Latest release: Jan 8, 2016
  • Number of updates: 4
  • Update frequency: every 15.0 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,916 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.52ms] Passed 4 tests

Server-side resources used by WP Term Family
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.38 ▼1.13
Dashboard /wp-admin3.33 ▲0.0342.76 ▼1.98
Posts /wp-admin/edit.php3.45 ▲0.0941.55 ▼2.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0376.86 ▼19.98
Media Library /wp-admin/upload.php3.26 ▲0.0332.21 ▼5.45

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
wpdb_term_family_version
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Term Family
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.001.88 ▲0.2639.55 ▼1.43
Dashboard /wp-admin2,198 ▲185.58 ▼0.0785.60 ▼1.0637.97 ▼3.06
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0836.42 ▼1.9432.47 ▲2.71
Add New Post /wp-admin/post-new.php1,526 ▼1123.14 ▲4.88659.41 ▲24.3355.43 ▼11.28
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.0197.00 ▼18.0544.29 ▼1.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • wpdb_term_family_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #2, #3, #4 in wp-term-families/assets to your readme.txt
The official readme.txt is a good inspiration

wp-term-families/wp-term-families.php Passed 13 tests

The entry point to "WP Term Family" version 0.2.0 is a PHP file that has certain tags in its header comment area
27 characters long description:
Families for taxonomy terms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin415 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4176442371
Markdown119033
JavaScript1208
CSS1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.00
▷ Minimum class complexity9.00
▷ Maximum class complexity29.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods33
▷ Static methods00.00%
▷ Public methods2678.79%
▷ Protected methods515.15%
▷ Private methods26.06%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin