74% wp-triage

Code Review | WP Triage

WordPress plugin WP Triage scored74%from 54 tests.

About plugin

  • Plugin page: wp-triage
  • Plugin version: 1.4.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jul 27, 2017
  • Latest release: May 2, 2018
  • Number of updates: 32
  • Update frequency: every 8.7 days
  • Top authors: danieltj (90.63%)jfcby (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /797 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▲1.45ms] Passed 4 tests

This is a short check of server-side resources used by WP Triage
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0744.43 ▲5.08
Dashboard /wp-admin3.38 ▲0.0847.51 ▲1.12
Posts /wp-admin/edit.php3.43 ▲0.0846.59 ▲2.11
Add New Post /wp-admin/post-new.php5.98 ▲0.1082.64 ▼2.37
Media Library /wp-admin/upload.php3.30 ▲0.0737.67 ▲4.94
Settings /wp-admin/admin.php?page=dtjwpt_settings3.3131.64
Roles /wp-admin/admin.php?page=dtjwpt_roles3.3334.24
Components /wp-admin/admin.php?page=dtjwpt_components3.2429.24
Projects /wp-admin/admin.php?page=dtjwpt_triage3.3334.82

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: 4 new tables, 15 new options
New tables
wp_dtjwpt_components
wp_dtjwpt_tickets
wp_dtjwpt_notes
wp_dtjwpt_projects
New WordPress options
dtjwpt_items_per_page
dtjwpt_admin_toolbar_link
widget_recent-comments
dtjwpt_notify_by_email
can_compress_scripts
db_upgraded
recovery_mode_email_last_sent
widget_recent-posts
dtjwpt_database_version
theysaidso_admin_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Triage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲15413.25 ▼1.061.63 ▼0.0443.16 ▼0.81
Dashboard /wp-admin2,275 ▲875.90 ▲0.0596.98 ▼3.7439.05 ▼0.25
Posts /wp-admin/edit.php2,155 ▲662.06 ▼0.0840.70 ▼0.0834.64 ▲0.51
Add New Post /wp-admin/post-new.php1,566 ▲5217.70 ▲0.12659.07 ▲51.7760.30 ▼0.99
Media Library /wp-admin/upload.php1,454 ▲634.22 ▲0.0796.52 ▼0.0042.03 ▲0.07
Settings /wp-admin/admin.php?page=dtjwpt_settings9942.0923.0729.44
Roles /wp-admin/admin.php?page=dtjwpt_roles1,2122.1225.7944.51
Components /wp-admin/admin.php?page=dtjwpt_components7321.146.3823.01
Projects /wp-admin/admin.php?page=dtjwpt_triage1,1882.2324.9530.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables were found after uninstall: 4 tables
    • wp_dtjwpt_projects
    • wp_dtjwpt_notes
    • wp_dtjwpt_components
    • wp_dtjwpt_tickets
  • The uninstall procedure has failed, leaving 15 options in the database
    • db_upgraded
    • dtjwpt_auto_assign_owners
    • dtjwpt_uninstall_remember
    • widget_recent-comments
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • dtjwpt_admin_toolbar_link
    • dtjwpt_database_version
    • dtjwpt_items_per_page
    • ...

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=dtjwpt_components
    • > Warning in wp-content/plugins/wp-triage/assets/includes/core.php+312
    require_once(wp-content/plugins/wp-triage/assets/templates/components.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=dtjwpt_components
    • > Compile error in wp-content/plugins/wp-triage/assets/includes/core.php+312
    require_once(): Failed opening required 'wp-content/plugins/wp-triage/assets/templates/components.php' (include_path='.:/usr/share/php')

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: adopt-me, support, feature, bugs, tracker

wp-triage/wp-triage.php Passed 13 tests

The principal PHP file in "WP Triage" v. 1.4.2 is loaded by WordPress automatically on each request
54 characters long description:
An issue tracker for things that haven't gone to plan.

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
There were no executable files found in this plugin3,089 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP131,2736452,342
JavaScript1214133358
CSS1663308
Markdown246081

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity22.00
▷ Minimum class complexity15.00
▷ Maximum class complexity29.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin