78% wpit-gantt

Code Review | WPIT GANTT

WordPress plugin WPIT GANTT scored78%from 54 tests.

About plugin

  • Plugin page: wpit-gantt
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.8
  • WordPress version: 6.3.1
  • First release: Aug 17, 2012
  • Latest release: Jul 10, 2021
  • Number of updates: 37
  • Update frequency: every 87.8 days
  • Top authors: wolly (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /7,838 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.01ms] Passed 4 tests

An overview of server-side resources used by WPIT GANTT
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.29 ▲3.14
Dashboard /wp-admin3.39 ▲0.0850.59 ▼3.54
Posts /wp-admin/edit.php3.44 ▲0.0851.54 ▼3.05
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.49 ▼0.58
Media Library /wp-admin/upload.php3.31 ▲0.0840.94 ▲4.41
Manage Charts /wp-admin/admin.php?page=gantt-manage3.2735.84
Settings /wp-admin/admin.php?page=gantt-settings3.2534.99
Gantt Charts /wp-admin/options-general.php?page=myplugin3.2532.36

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPIT GANTT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.32 ▼1.291.82 ▼0.0245.11 ▲5.69
Dashboard /wp-admin2,237 ▲494.84 ▼0.07105.01 ▼1.4639.01 ▼9.88
Posts /wp-admin/edit.php2,120 ▲282.02 ▲0.0039.44 ▲0.9536.84 ▲3.24
Add New Post /wp-admin/post-new.php1,558 ▲3923.16 ▲0.04646.41 ▲21.3159.98 ▲8.35
Media Library /wp-admin/upload.php1,416 ▲314.26 ▲0.0799.92 ▼6.2347.67 ▲3.36
Manage Charts /wp-admin/admin.php?page=gantt-manage8472.0324.3324.82
Settings /wp-admin/admin.php?page=gantt-settings8102.0325.0427.45
Gantt Charts /wp-admin/options-general.php?page=myplugin8132.0624.4227.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=myplugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=myplugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpit-gantt/wpit-gantt.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpit-gantt/files/wpit-gantt-start.php:439
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpit-gantt/files/wpit-gantt-functions.php:11

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (This is a sample Gantt chart) image not found
You can look at the official readme.txt

wpit-gantt/wpit-gantt.php Passed 13 tests

The entry point to "WPIT GANTT" version 1.1 is a PHP file that has certain tags in its header comment area
75 characters long description:
This plugin allow you to create and insert GANTT chart into pages and posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,612 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP53981681,023
CSS37240329
Sass2300260

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.64
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods118
▷ Static methods00.00%
▷ Public methods118100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.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
No PNG images were found in this plugin