63% issues-tracker

Code Review | Issues Tracker

WordPress plugin Issues Tracker scored63%from 54 tests.

About plugin

  • Plugin page: issues-tracker
  • Plugin version: 1.8
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2021
  • Latest release: Nov 27, 2023
  • Number of updates: 39
  • Update frequency: every 23.2 days
  • Top authors: lysyiweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,633 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲6.07MB] [CPU: ▲29.28ms] 75% from 4 tests

An overview of server-side resources used by Issues Tracker
Please have a look at the following items
  • Extra RAM: The extra memory usage should kept under 5MB (currently 6.07MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.56 ▲6.1076.06 ▲36.03
Dashboard /wp-admin9.43 ▲6.0879.02 ▲14.21
Posts /wp-admin/edit.php9.48 ▲6.1281.97 ▲33.99
Add New Post /wp-admin/post-new.php11.95 ▲6.06128.59 ▲32.90
Media Library /wp-admin/upload.php9.29 ▲6.0674.67 ▲41.89
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.5463.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 320 new files
Database: 1 new table, 9 new options
New tables
wp_istkr_404_log
New WordPress options
can_compress_scripts
fs_debug_mode
fs_active_plugins
theysaidso_admin_options
fs_accounts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Issues Tracker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9814.23 ▼0.481.66 ▲0.0433.20 ▼11.21
Dashboard /wp-admin2,253 ▲795.53 ▼0.1182.18 ▼12.6578.47 ▲32.80
Posts /wp-admin/edit.php2,159 ▲561.95 ▼0.0640.79 ▲2.5534.62 ▲2.52
Add New Post /wp-admin/post-new.php1,567 ▲4122.68 ▼0.90635.32 ▼51.44164.85 ▲101.86
Media Library /wp-admin/upload.php1,452 ▲524.23 ▼0.0499.41 ▲2.8766.58 ▲24.64
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1101.8227.7329.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/issues-tracker/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_istkr_404_log
  • This plugin does not fully uninstall, leaving 9 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • fs_debug_mode
    • fs_accounts
    • can_compress_scripts
    • fs_active_plugins
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/issues-tracker/views/components/header.tpl.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: You can look at the official readme.txt

issues-tracker/index.php 92% from 13 tests

This is the main PHP file of "Issues Tracker" version 1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("issues-tracker.php" instead of "index.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin50,694 lines of code in 235 files:
LanguageFilesBlank linesComment linesLines of code
PHP1598,76117,89538,590
CSS321,0791517,533
JSON5002,488
JavaScript172401101,041
Sass141251626
Markdown31430378
SVG51038

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity62.62
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces2
Interfaces1
Traits1
Classes77
▷ Abstract classes22.60%
▷ Concrete classes7597.40%
▷ Final classes00.00%
Methods1,421
▷ Static methods29720.90%
▷ Public methods1,01371.29%
▷ Protected methods211.48%
▷ Private methods38727.23%
Functions118
▷ Named functions10790.68%
▷ Anonymous functions119.32%
Constants162
▷ Global constants10061.73%
▷ Class constants6238.27%
▷ Public constants62100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/vendor/images/sort_both.png0.20KB0.29KB0.00%
assets/vendor/images/sort_asc.png0.16KB0.25KB0.00%
assets/img/corona.png1.37KB1.10KB▼ 19.89%
assets/img/email-404.png11.64KB4.51KB▼ 61.25%
assets/vendor/images/sort_desc.png0.15KB0.25KB0.00%