Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-redmine-issues/includes/wpri_start.php+108
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.86MB] [CPU: ▼57.48ms] Passed 4 tests
This is a short check of server-side resources used by WP-Redmine-Issues
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 5.01 ▼38.23 |
Dashboard /wp-admin | 2.15 ▼1.15 | 6.83 ▼46.85 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 6.92 ▼43.80 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 8.27 ▼101.02 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 7.28 ▼31.37 |
WPRI - Settings /wp-admin/options-general.php?page=wpri-settings | 2.15 | 7.06 |
New Issue /wp-admin/admin.php?page=wpri-create-ticket | 2.15 | 7.26 |
Issues /wp-admin/admin.php?page=wpri | 2.15 | 5.66 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP-Redmine-Issues
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 14.39 ▲0.04 | 1.81 ▲0.17 | 41.33 ▼5.00 |
Dashboard /wp-admin | 2,243 ▲63 | 5.66 ▲0.04 | 91.86 ▲1.41 | 41.28 ▲2.50 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.15 ▲0.00 | 39.44 ▼1.86 | 34.32 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.28 ▼0.00 | 692.84 ▲80.31 | 50.02 ▼7.15 |
Media Library /wp-admin/upload.php | 1,444 ▲41 | 4.25 ▲0.05 | 113.19 ▲9.33 | 48.84 ▲6.11 |
WPRI - Settings /wp-admin/options-general.php?page=wpri-settings | 931 | 1.65 | 24.11 | 28.02 |
New Issue /wp-admin/admin.php?page=wpri-create-ticket | 703 | 1.14 | 9.38 | 18.16 |
Issues /wp-admin/admin.php?page=wpri | 707 | 1.35 | 7.69 | 16.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-redmine-issues/includes/wpri_start.php+108
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpri
- > Deprecated in wp-content/plugins/wp-redmine-issues/includes/wpri_start.php+108
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- > GET request to /wp-admin/options-general.php?page=wpri-settings
- > Notice in wp-content/plugins/wp-redmine-issues/includes/lib/af_wp_html.class.php+351
Undefined variable: timestamp
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
Please fix the following items
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_ticket_journal_table.class.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'arcanasoft\\wpri\\wpri_Wp_List_Table' not found in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_ticket_list_table.class.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_ticket_journal_table.class.php on line 9
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_ticket_journal_table.class.php on line 9
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_ticket_journal_table.class.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_wp_list_table.class.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_wp_list_table.class.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_ticket_journal_table.class.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'arcanasoft\\wpri\\wpri_Wp_List_Table' not found in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_ticket_list_table.class.php:8
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-redmine-issues/includes/lib/wpri_wp_list_table.class.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Issues List), #2 (Issue Details), #3 (Issue Create - Project), #4 (Issue Create - Tracker and Categorie), #5 (Issue Create - Details), #6 (Issues Settings)
- Contributors: The plugin contributors field is not present
wp-redmine-issues/wpri.php 77% from 13 tests
"WP-Redmine-Issues" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-redmine-issues.php" instead of "wpri.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,425 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 216 | 149 | 1,129 |
PO File | 1 | 75 | 0 | 179 |
CSS | 1 | 17 | 10 | 72 |
JavaScript | 1 | 6 | 4 | 45 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 25.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 46 | 74.19% |
▷ Public methods | 62 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.77MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-html-code.png | 0.44KB | 0.52KB | 0.00% |
screenshot-1.png | 80.84KB | 31.82KB | ▼ 60.64% |
screenshots/3. Ticket Create - Project.png | 49.63KB | 19.52KB | ▼ 60.67% |
screenshot-5.png | 55.70KB | 22.04KB | ▼ 60.44% |
screenshot-2.png | 82.83KB | 30.65KB | ▼ 63.00% |