89% wp-webhooks-manage-taxonomy-terms

Code Review | WP Webhooks - Manage Taxonomy Terms

WordPress plugin WP Webhooks - Manage Taxonomy Terms scored 89% from 54 tests.

About plugin

  • Plugin page: wp-webhooks-manag...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: May 2, 2021
  • Number of updates: 6
  • Update frequency: every 107.0 days
  • Top authors: ironikus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 1,812 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by WP Webhooks - Manage Taxonomy Terms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.40 ▼5.75
Dashboard /wp-admin3.42 ▲0.1246.63 ▼7.69
Posts /wp-admin/edit.php3.47 ▲0.1249.23 ▲0.64
Add New Post /wp-admin/post-new.php6.00 ▲0.1286.65 ▼2.35
Media Library /wp-admin/upload.php3.34 ▲0.1236.44 ▲2.98

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Webhooks - Manage Taxonomy Terms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8414.43 ▼0.021.70 ▼0.1639.98 ▼10.30
Dashboard /wp-admin2,222 ▲315.81 ▲0.9499.62 ▼3.4141.11 ▲1.66
Posts /wp-admin/edit.php2,108 ▲192.04 ▲0.0038.64 ▲2.5037.27 ▲2.32
Add New Post /wp-admin/post-new.php1,561 ▲4718.15 ▲0.62654.89 ▼41.4754.35 ▼11.92
Media Library /wp-admin/upload.php1,407 ▲194.21 ▼0.0495.28 ▼5.4641.39 ▼6.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

wp-webhooks-manage-taxonomy-terms/wpwh-manage-taxonomy-terms.php 92% from 13 tests

The main PHP script in "WP Webhooks - Manage Taxonomy Terms" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-webhooks-manage-taxonomy-terms.php" instead of "wpwh-manage-taxonomy-terms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected589 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110564589

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin