10% issuepress

Code Review | IssuePress

WordPress plugin IssuePress scored 10% from 54 tests.

About plugin

  • Plugin page: issuepress
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 5.8.1
  • First release: Oct 29, 2014
  • Latest release: Oct 29, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mattsimo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 570 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/issuepress/includes/class-issuepress.php+204
    Use of undefined constant YOUR_PLUGIN_DIR - assumed 'YOUR_PLUGIN_DIR' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.66MB] [CPU: ▼185.81ms] Passed 4 tests

This is a short check of server-side resources used by IssuePress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.97 ▼0.747.81 ▼15.88
Dashboard /wp-admin1.99 ▼1.0614.06 ▼23.75
Posts /wp-admin/edit.php1.99 ▼1.128.47 ▼41.19
Add New Post /wp-admin/post-new.php1.99 ▼3.447.21 ▼651.59
Media Library /wp-admin/upload.php1.99 ▼1.0110.30 ▼26.72
Sections /wp-admin/edit-tags.php?taxonomy=ip_support_section&post_type=ip_support_request2.007.34
All Support Requests /wp-admin/edit.php?post_type=ip_support_request2.007.75
Labels /wp-admin/edit-tags.php?taxonomy=ip_support_label&post_type=ip_support_request2.007.24
Add New /wp-admin/post-new.php?post_type=ip_support_request1.998.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 2 new options
New WordPress options
widget_ip_widget_search_form
widget_ip_widget_new_request_form

Browser metrics Passed 4 tests

IssuePress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,897 ▲28416.17 ▲0.6813.66 ▲3.9547.98 ▼8.87
Dashboard /wp-admin3,028 ▲946.05 ▼0.02141.96 ▼10.35124.92 ▲4.65
Posts /wp-admin/edit.php2,790 ▲512.61 ▼0.0962.09 ▼4.9484.83 ▼14.74
Add New Post /wp-admin/post-new.php1,546 ▼13718.52 ▲0.06388.90 ▼2.69115.13 ▼2.52
Media Library /wp-admin/upload.php1,816 ▲95.00 ▼0.05132.38 ▼27.55151.77 ▲17.00
Sections /wp-admin/edit-tags.php?taxonomy=ip_support_section&post_type=ip_support_request1,8222.4958.7483.59
All Support Requests /wp-admin/edit.php?post_type=ip_support_request1,5622.7464.5579.01
Labels /wp-admin/edit-tags.php?taxonomy=ip_support_label&post_type=ip_support_request1,7972.5159.8283.23
Add New /wp-admin/post-new.php?post_type=ip_support_request3,4199.13232.42167.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/issuepress/includes/class-issuepress.php+204
    Use of undefined constant YOUR_PLUGIN_DIR - assumed 'YOUR_PLUGIN_DIR' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 2 options in the database
    • widget_ip_widget_new_request_form
    • widget_ip_widget_search_form

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ip_support_request
    • > Warning in wp-content/plugins/issuepress/includes/class-issuepress.php+204
    Use of undefined constant YOUR_PLUGIN_DIR - assumed 'YOUR_PLUGIN_DIR' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/post-new.php?post_type=ip_support_request
    • > Warning in wp-content/plugins/issuepress/admin/views/support-meta-box.php+44
    Invalid argument supplied for foreach()

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/issuepress/public/partials/issuepress-public-display.php
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/issuepress/admin/views/general-section.php:17
    • > PHP Warning
      Use of undefined constant ISSUEPRESS_PLUGIN_DIR - assumed 'ISSUEPRESS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/issuepress/includes/class-issuepress-template-loader.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_ip_the_sections() in wp-content/plugins/issuepress/templates/support-meta.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/issuepress/admin/views/admin-tabs.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/issuepress/public/widgets/load.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_support_request_status() in wp-content/plugins/issuepress/admin/views/support-meta-box.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/issuepress/public/widgets/new-request-form.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_ip_sections() in wp-content/plugins/issuepress/templates/support-sections.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/issuepress/includes/class-issuepress-widget.php:5
    • > PHP Warning
      require_once(ISSUEPRESS_PLUGIN_DIRincludes/class-gamajo-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/issuepress/includes/class-issuepress-template-loader.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: support, issuepress, support requests

issuepress/issuepress.php Passed 13 tests

The entry point to "IssuePress" version 1.0.0 is a PHP file that has certain tags in its header comment area
40 characters long description:
Professional Support right in WordPress.

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
Everything looks great! No dangerous files found in this plugin7,576 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
HTML35903,134
JavaScript8245762,218
PHP327271,4581,310
CSS67227740
Sass228087
SVG20256
JSON10031

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.86
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods98
▷ Static methods55.10%
▷ Public methods9091.84%
▷ Protected methods33.06%
▷ Private methods55.10%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/chosen/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
vendor/chosen/chosen-sprite.png0.63KB0.88KB0.00%
vendor/chosen/docsupport/oss-credit.png6.55KB3.26KB▼ 50.17%
admin/img/issuepress-wordpress-icon-32x32.png16.36KB1.33KB▼ 91.89%
vendor/chosen/docsupport/chosen.png3.39KB2.08KB▼ 38.62%