84% wolfe-candy-tree-view

Code Review | Wolfe Candy Tree View

WordPress plugin Wolfe Candy Tree View scored84%from 54 tests.

About plugin

  • Plugin page: wolfe-candy-tree-...
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2022
  • Latest release: Oct 7, 2022
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: jrackwolfe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /250 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.37ms] Passed 4 tests

Analyzing server-side resources used by Wolfe Candy Tree View
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.93 ▼4.45
Dashboard /wp-admin3.40 ▲0.0950.57 ▲1.32
Posts /wp-admin/edit.php3.45 ▲0.0949.12 ▼1.59
Add New Post /wp-admin/post-new.php5.98 ▲0.09103.54 ▲7.79
Media Library /wp-admin/upload.php3.32 ▲0.0940.61 ▲3.26

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Wolfe Candy Tree View
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.12 ▼0.231.77 ▼0.0836.54 ▼6.06
Dashboard /wp-admin2,195 ▲185.60 ▼0.0189.59 ▲0.5138.31 ▼0.46
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0640.08 ▲2.9735.50 ▲0.21
Add New Post /wp-admin/post-new.php1,526 ▼023.59 ▲0.66680.27 ▲48.4552.63 ▼1.66
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.01108.14 ▼4.4547.93 ▲1.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wolfe-candy-tree-view/plugin-startup.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wolfe-candy-tree-view/plugin-startup.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: org chart, tree view, structure, files, folder...

wolfe-candy-tree-view/wolfe-candy-tree-view.php Passed 13 tests

This is the main PHP file of "Wolfe Candy Tree View" version 0.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
88 characters long description:
Create an HTML front-end using shortcode to display a tree structure in multiple styles.

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
No dangerous file extensions were detected1,210 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS91536819
PHP3162115391

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity118.00
▷ Minimum class complexity118.00
▷ Maximum class complexity118.00
Average method complexity11.64
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
17 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/smilie.png2.47KB1.73KB▼ 29.98%
icons/user-id.png1.76KB1.46KB▼ 16.88%
icons/graph.png1.69KB1.46KB▼ 13.36%
icons/reference.png2.64KB1.70KB▼ 35.57%
icons/question_2.png2.62KB1.74KB▼ 33.57%