83% interactive-page-hierarchy

Code Review | Interactive Page Hierarchy

WordPress plugin Interactive Page Hierarchy scored83%from 54 tests.

About plugin

  • Plugin page: interactive-page-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.3
  • WordPress version: 6.3.1
  • First release: Dec 14, 2018
  • Latest release: Sep 22, 2019
  • Number of updates: 13
  • Update frequency: every 21.7 days
  • Top authors: gtekelis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,386 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Interactive Page Hierarchy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.93 ▼2.96
Dashboard /wp-admin3.34 ▼0.0050.74 ▼15.27
Posts /wp-admin/edit.php3.39 ▲0.0450.45 ▼1.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.03 ▼17.58
Media Library /wp-admin/upload.php3.27 ▲0.0442.51 ▲2.34

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Interactive Page Hierarchy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.62 ▼1.031.84 ▼0.0844.91 ▲1.08
Dashboard /wp-admin2,222 ▲344.87 ▼0.03103.37 ▼53.1743.76 ▼14.49
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0639.82 ▲2.5333.57 ▼5.69
Add New Post /wp-admin/post-new.php1,546 ▲2723.43 ▲0.40651.71 ▼43.9058.88 ▲1.12
Media Library /wp-admin/upload.php1,401 ▲134.30 ▲0.04101.99 ▼14.9248.52 ▼1.46

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-page-hierarchy/gtek_iph_main.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can look at the official readme.txt

interactive-page-hierarchy/gtek_iph_main.php 85% from 13 tests

The main PHP file in "Interactive Page Hierarchy" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("interactive-page-hierarchy.php" instead of "gtek_iph_main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin28,017 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript97,41923,66727,568
CSS49579271
PHP23520178

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions9
▷ Named functions9100.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