94% zingtree

Code Review | zingtree

WordPress plugin zingtree scored 94% from 54 tests.

About plugin

  • Plugin page: zingtree
  • Plugin version: 6.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.11
  • WordPress version: 5.8.1
  • First release: Jun 12, 2015
  • Latest release: Mar 28, 2019
  • Number of updates: 56
  • Update frequency: every 26.5 days
  • Top authors: zingtree (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 3,512 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼140.40ms] Passed 4 tests

Analyzing server-side resources used by zingtree
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.75 ▲12.96
Dashboard /wp-admin3.06 ▲0.0147.09 ▲0.86
Posts /wp-admin/edit.php3.11 ▲0.0040.89 ▲3.53
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.21 ▼559.43
Media Library /wp-admin/upload.php3.00 ▼0.0136.00 ▼6.56

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for zingtree
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,861 ▲26516.40 ▲0.9025.57 ▲16.6950.06 ▲6.09
Dashboard /wp-admin2,970 ▲365.92 ▼0.02145.15 ▼3.55115.48 ▼1.44
Posts /wp-admin/edit.php2,739 ▲32.80 ▼0.0270.06 ▲4.3596.73 ▲3.67
Add New Post /wp-admin/post-new.php1,683 ▲18118.45 ▼0.20375.19 ▼13.52112.36 ▲5.75
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.00152.44 ▼6.57121.44 ▲2.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zingtree/zingtree.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: call center, decision tree, troubleshooter, contact center, interactive decision tree...

zingtree/zingtree.php Passed 13 tests

The main PHP script in "zingtree" version 6.11 is automatically included on every request by WordPress
52 characters long description:
[zingtree name="Zingtree" id="123456789" ] shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,754 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2211701,667
PHP1553287

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected