84% easy-hierarchy

Code Review | Easy hierarchy

WordPress plugin Easy hierarchy scored84%from 54 tests.

About plugin

  • Plugin page: easy-hierarchy
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Sep 30, 2020
  • Latest release: Sep 2, 2022
  • Number of updates: 14
  • Update frequency: every 50.1 days
  • Top authors: Milmor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.81ms] Passed 4 tests

A check of server-side resources used by Easy hierarchy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.75 ▲4.37
Dashboard /wp-admin3.33 ▼0.0242.52 ▼16.94
Posts /wp-admin/edit.php3.38 ▲0.0244.49 ▲0.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.77 ▼14.96
Media Library /wp-admin/upload.php3.25 ▲0.0233.58 ▲0.13

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Easy hierarchy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.19 ▼1.491.60 ▼0.4437.24 ▼6.50
Dashboard /wp-admin2,206 ▲174.84 ▼1.22108.98 ▼15.7743.49 ▼0.71
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0340.21 ▲3.2935.56 ▼1.72
Add New Post /wp-admin/post-new.php1,533 ▼723.23 ▼0.03587.65 ▲0.2453.70 ▲1.91
Media Library /wp-admin/upload.php1,388 ▼34.19 ▲0.0295.64 ▼0.7441.56 ▼0.89

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-hierarchy/easy-hierarchy.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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 require attention: Please take inspiration from this readme.txt

easy-hierarchy/easy-hierarchy.php Passed 13 tests

This is the main PHP file of "Easy hierarchy" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
19 characters long description:
Hierarchy made easy

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
Everything looks great! No dangerous files found in this plugin56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111056

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin