66% project-panorama-lite

Code Review | Panorama - WordPress Project Management Plugin

WordPress plugin Panorama - WordPress Project Management Plugin scored66%from 54 tests.

About plugin

  • Plugin page: project-panorama-...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 13, 2014
  • Latest release: Apr 18, 2023
  • Number of updates: 77
  • Update frequency: every 42.3 days
  • Top authors: 3pointross (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

800+ active /56,087 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.95MB] [CPU: ▲30.10ms] Passed 4 tests

Analyzing server-side resources used by Panorama - WordPress Project Management Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /7.93 ▲4.4767.94 ▲28.95
Dashboard /wp-admin8.51 ▲5.1684.17 ▲21.13
Posts /wp-admin/edit.php8.26 ▲4.9171.31 ▲28.43
Add New Post /wp-admin/post-new.php11.37 ▲5.49138.48 ▲41.87
Media Library /wp-admin/upload.php8.50 ▲5.2776.83 ▲44.08
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools8.5275.50
Projects by User /wp-admin/admin.php?page=psp_user_list8.3462.98
Project Types /wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects8.4969.10
Field Groups /wp-admin/edit.php?post_type=acf-field-group8.5375.77
Settings /wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects&page=panorama-license8.1757.51
Add New /wp-admin/post-new.php?post_type=acf-field-group8.6496.09
Calendar /wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects&page=panorama-calendar8.1765.73

Server storage [IO: ▲25.23MB] [DB: ▲0.01MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • Total filesystem usage must be limited to 25MB (currently using 25.23MB)
Filesystem: 1,025 new files
Database: no new tables, 41 new options
New WordPress options
psp_header_text
duplicate_post_taxonomies_blacklist
psp_footer_background
widget_recent-posts
psp_menu_text
psp_include_logo
psp_default_message
psp_custom_template
psp_body_link
duplicate_post_show_row
...

Browser metrics Passed 4 tests

Panorama - WordPress Project Management Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,155 ▲40915.09 ▲0.972.52 ▲0.8029.63 ▼14.67
Dashboard /wp-admin2,561 ▲3736.92 ▲2.01148.86 ▲35.2148.85 ▲4.74
Posts /wp-admin/edit.php2,725 ▲6363.53 ▲1.5346.66 ▲6.1031.38 ▼1.58
Add New Post /wp-admin/post-new.php11,830 ▲10,30226.67 ▲8.561,253.19 ▲631.8442.04 ▼14.51
Media Library /wp-admin/upload.php2,100 ▲7158.42 ▲4.19209.71 ▲106.3848.66 ▲3.07
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools1,4934.1161.1390.95
Projects by User /wp-admin/admin.php?page=psp_user_list1,0793.0740.7322.70
Project Types /wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects1,5834.0257.2927.49
Field Groups /wp-admin/edit.php?post_type=acf-field-group1,9073.6348.7674.32
Settings /wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects&page=panorama-license280.440.093.71
Add New /wp-admin/post-new.php?post_type=acf-field-group4,6805.26143.4074.96
Calendar /wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects&page=panorama-calendar280.440.063.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 41 options in the database
    • psp_flush_rewrites
    • duplicate_post_copychildren
    • widget_psp_project_list_widget
    • duplicate_post_copystatus
    • duplicate_post_copyattachments
    • psp_menu_text
    • psp_body_heading
    • psp_logo
    • psp_body_link
    • duplicate_post_show_adminbar
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=psp_user_list
    • > Notice in wp-content/plugins/project-panorama-lite/lib/psp-helpers.php+769
    Undefined index: user

SRP 0% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/project-panorama-lite/assets/css/psp-custom.css.php
  • 232× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-panorama-lite/lib/psp-data-model.php:61
    • > PHP Notice
      Undefined variable: group_id in wp-content/plugins/project-panorama-lite/lib/acf/master/includes/admin/views/html-location-group.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/project-panorama-lite/lib/acf/master/includes/admin/views/html-location-rule.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/project-panorama-lite/lib/acf/master/includes/fields/class-acf-field-separator.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/project-panorama-lite/lib/acf/master/includes/fields/class-acf-field-page_link.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-panorama-lite/lib/acf/slider/acf-slider.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/project-panorama-lite/lib/acf/master/includes/fields/class-acf-field-radio.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/project-panorama-lite/lib/lite/CMB2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Warning
      require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/project-panorama-lite/lib/lite/CMB2/tests/bootstrap.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/project-panorama-lite/lib/acf/master/includes/admin/views/field-group-locations.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects&page=panorama-license
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects&page=panorama-license - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects&page=panorama-calendar
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=psp_tax&post_type=psp_projects&page=panorama-calendar - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Indicate overall project progress and identify key milestones), #2 (Break up projects into individual phases, automatically calculate total project completion by modifying phase completion), #3 (Provide key project information and automatically track elapsed time), #4 (Upload key documents and files), #5 (Get an overview of project progress vs time left before deadline), #6 (Embed project lists into your site), #7 (Embed projects into your site, mobile friendly)
You can take inspiration from this readme.txt

project-panorama-lite/project-panorama.php 85% from 13 tests

"Panorama - WordPress Project Management Plugin" version 1.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("project-panorama-lite.php" instead of "project-panorama.php")

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
Good job! No executable or dangerous file extensions detected287,734 lines of code in 697 files:
LanguageFilesBlank linesComment linesLines of code
PO File16750,16679,622104,547
JavaScript6413,97714,88857,674
XML34247,749
PHP30817,87030,96845,885
CSS452,3574,52822,512
Sass20926293,976
JSON5003,647
Markdown73020858
SVG7300651
YAML290152
Bourne Shell119771
Ruby2132512

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity17.91
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes223
▷ Abstract classes125.38%
▷ Concrete classes21194.62%
▷ Final classes00.00%
Methods1,793
▷ Static methods1035.74%
▷ Public methods1,67293.25%
▷ Protected methods965.35%
▷ Private methods251.39%
Functions749
▷ Named functions74699.60%
▷ Anonymous functions30.40%
Constants44
▷ Global constants3681.82%
▷ Class constants818.18%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
79 PNG files occupy 0.33MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
assets/images/menu.png1.46KB0.11KB▼ 92.30%
lib/acf/slider/assets/css/smoothness/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
assets/css/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
assets/css/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%