83% liquid-treemap

Code Review | LIQUID TREEMAP

WordPress plugin LIQUID TREEMAP scored83%from 54 tests.

About plugin

  • Plugin page: liquid-treemap
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.1
  • WordPress version: 6.3.1
  • First release: Jul 12, 2017
  • Latest release: Nov 5, 2022
  • Number of updates: 10
  • Update frequency: every 194.5 days
  • Top authors: lqd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,437 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▲938.77ms] 50% from 4 tests

An overview of server-side resources used by LIQUID TREEMAP
Please take the time to fix the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,342.80ms on /wp-admin/tools.php?page=liquid_treemap)
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 938.77ms on /wp-admin/tools.php?page=liquid_treemap)
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.10 ▼4.44
Dashboard /wp-admin3.39 ▲0.091,326.15 ▲1,268.35
Posts /wp-admin/edit.php3.44 ▲0.091,331.67 ▲1,276.72
Add New Post /wp-admin/post-new.php5.91 ▲0.021,320.05 ▲1,214.45
Media Library /wp-admin/upload.php3.25 ▲0.021,461.58 ▲1,422.86
LIQUID TREEMAP /wp-admin/tools.php?page=liquid_treemap3.241,342.80

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
category_children
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for LIQUID TREEMAP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.56 ▼0.161.73 ▼0.0043.15 ▼0.11
Dashboard /wp-admin2,199 ▲195.59 ▼0.0592.04 ▼5.1638.78 ▲1.73
Posts /wp-admin/edit.php2,083 ▼201.98 ▼0.0232.69 ▼8.5436.21 ▲0.32
Add New Post /wp-admin/post-new.php1,528 ▲223.26 ▼0.20649.24 ▼28.3157.34 ▲4.38
Media Library /wp-admin/upload.php1,404 ▲14.15 ▲0.1091.69 ▼14.0140.59 ▼4.48
LIQUID TREEMAP /wp-admin/tools.php?page=liquid_treemap8382.3130.2036.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • category_children
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/liquid-treemap/liquid-treemap.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/liquid-treemap/liquid-treemap-menu.php:7

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

liquid-treemap/liquid-treemap.php Passed 13 tests

The main PHP file in "LIQUID TREEMAP" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
20 characters long description:
LIQUID PRESS Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected9,861 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11009,544
PHP24746279
CSS19038

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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
No PNG files were detected