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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.56 ▲6.10 | 76.06 ▲36.03 |
Dashboard /wp-admin | 9.43 ▲6.08 | 79.02 ▲14.21 |
Posts /wp-admin/edit.php | 9.48 ▲6.12 | 81.97 ▲33.99 |
Add New Post /wp-admin/post-new.php | 11.95 ▲6.06 | 128.59 ▲32.90 |
Media Library /wp-admin/upload.php | 9.29 ▲6.06 | 74.67 ▲41.89 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.54 | 63.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲98 | 14.23 ▼0.48 | 1.66 ▲0.04 | 33.20 ▼11.21 |
Dashboard /wp-admin | 2,253 ▲79 | 5.53 ▼0.11 | 82.18 ▼12.65 | 78.47 ▲32.80 |
Posts /wp-admin/edit.php | 2,159 ▲56 | 1.95 ▼0.06 | 40.79 ▲2.55 | 34.62 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 22.68 ▼0.90 | 635.32 ▼51.44 | 164.85 ▲101.86 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.23 ▼0.04 | 99.41 ▲2.87 | 66.58 ▲24.64 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,110 | 1.82 | 27.73 | 29.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
- > PHP Fatal error
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:
- Screenshots: A description for screenshot #5 is missing in issues-tracker/assets to your 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 159 | 8,761 | 17,895 | 38,590 |
CSS | 32 | 1,079 | 151 | 7,533 |
JSON | 5 | 0 | 0 | 2,488 |
JavaScript | 17 | 240 | 110 | 1,041 |
Sass | 14 | 125 | 1 | 626 |
Markdown | 3 | 143 | 0 | 378 |
SVG | 5 | 1 | 0 | 38 |
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 code | 0.62 |
Average class complexity | 62.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 77 | |
▷ Abstract classes | 2 | 2.60% |
▷ Concrete classes | 75 | 97.40% |
▷ Final classes | 0 | 0.00% |
Methods | 1,421 | |
▷ Static methods | 297 | 20.90% |
▷ Public methods | 1,013 | 71.29% |
▷ Protected methods | 21 | 1.48% |
▷ Private methods | 387 | 27.23% |
Functions | 118 | |
▷ Named functions | 107 | 90.68% |
▷ Anonymous functions | 11 | 9.32% |
Constants | 162 | |
▷ Global constants | 100 | 61.73% |
▷ Class constants | 62 | 38.27% |
▷ Public constants | 62 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/vendor/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/img/corona.png | 1.37KB | 1.10KB | ▼ 19.89% |
assets/img/email-404.png | 11.64KB | 4.51KB | ▼ 61.25% |
assets/vendor/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |