73% jituzu-tools

Code Review | Jituzu Tools

WordPress plugin Jituzu Tools scored 73% from 54 tests.

About plugin

  • Plugin page: jituzu-tools
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 5.8.1
  • First release: Oct 29, 2015
  • Latest release: Dec 1, 2017
  • Number of updates: 25
  • Update frequency: every 30.6 days
  • Top authors: jituzu_wp (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

80+ active / 2,659 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▼141.54ms] Passed 4 tests

Server-side resources used by Jituzu Tools
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1738.51 ▲15.83
Dashboard /wp-admin3.12 ▲0.0646.27 ▲0.18
Posts /wp-admin/edit.php3.20 ▲0.0942.84 ▼5.59
Add New Post /wp-admin/post-new.php5.47 ▲0.0491.42 ▼565.48
Media Library /wp-admin/upload.php3.06 ▲0.0636.46 ▲4.75
Template Tags /wp-admin/admin.php?page=jtools-templatetags3.0321.93
Shortcode /wp-admin/admin.php?page=jtools-shortcode3.0140.21
Jituzu Tools /wp-admin/admin.php?page=jtools3.0329.59
Settings /wp-admin/admin.php?page=jtools-config3.0329.27

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 1 new option
New WordPress options
jtools_settings

Browser metrics Passed 4 tests

Checking browser requirements for Jituzu Tools
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,770 ▲17416.62 ▲1.097.52 ▼2.2451.85 ▲0.17
Dashboard /wp-admin3,024 ▲876.56 ▲0.57143.16 ▼13.94130.69 ▲11.81
Posts /wp-admin/edit.php2,818 ▲792.77 ▲0.0770.85 ▼3.87147.11 ▲53.66
Add New Post /wp-admin/post-new.php1,630 ▲2620.79 ▲1.98392.77 ▲20.90118.43 ▲3.94
Media Library /wp-admin/upload.php1,816 ▲95.40 ▲0.38124.79 ▼25.99138.82 ▲14.84
Template Tags /wp-admin/admin.php?page=jtools-templatetags1,4132.5956.61138.89
Shortcode /wp-admin/admin.php?page=jtools-shortcode1,1352.5671.6380.35
Jituzu Tools /wp-admin/admin.php?page=jtools1,1932.5858.9793.60
Settings /wp-admin/admin.php?page=jtools-config1,9153.1190.31100.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • jtools_settings

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=jtools-shortcode
    • > Warning in wp-content/plugins/jituzu-tools/functions/shortcode.php+5
    Illegal string offset 'echo'
    • > GET request to /wp-admin/admin.php?page=jtools-shortcode
    • > Warning in wp-content/plugins/jituzu-tools/functions/shortcode.php+5
    Cannot assign an empty string to a string offset

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jituzu-tools/functions/shortcode.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jituzu-tools/functions/shortcode.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=jtools
    • > Network (severe)
    https://player.vimeo.com/video/92200813 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: The official readme.txt might help

jituzu-tools/jituzu-tools.php Passed 13 tests

The primary PHP file in "Jituzu Tools" version 1.3.3 is used by WordPress to initiate all plugin functionality
72 characters long description:
Embed Jituzu into your WordPress site with template tags and shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin604 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP155217494
CSS270107
JavaScript1203

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions12
▷ Named functions12100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo-jituzu.png6.23KB3.20KB▼ 48.58%
images/icon-jtools@16.png1.44KB0.73KB▼ 49.66%
images/icon-jtools@64.png3.52KB1.97KB▼ 43.97%