73% zephyr-project-manager

Code Review | Zephyr Project Manager

WordPress plugin Zephyr Project Manager scored73%from 54 tests.

About plugin

  • Plugin page: zephyr-project-ma...
  • Plugin version: 3.3.96
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.2
  • WordPress version: 6.3.1
  • First release: Aug 31, 2018
  • Latest release: Oct 30, 2023
  • Number of updates: 142
  • Update frequency: every 13.3 days
  • Top authors: dylanjkotze (100%)

Code review

54 tests

User reviews

93 reviews

Install metrics

1,000+ active /48,081 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲3.97MB] [CPU: ▲19.71ms] Passed 4 tests

A check of server-side resources used by Zephyr Project Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /7.33 ▲3.8659.44 ▲21.32
Dashboard /wp-admin7.35 ▲4.0472.19 ▲21.60
Posts /wp-admin/edit.php7.40 ▲4.0479.16 ▲31.26
Add New Post /wp-admin/post-new.php10.02 ▲4.13109.47 ▲6.04
Media Library /wp-admin/upload.php7.18 ▲3.9564.55 ▲29.89

Server storage [IO: ▲9.74MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 206 new files
Database: 5 new tables, 10 new options
New tables
wp_zpm_categories
wp_zpm_tasks
wp_zpm_projects
wp_zpm_activity
wp_zpm_messages
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
zpm_chart_data
zpm_statuses
can_compress_scripts
theysaidso_admin_options
zpm_db_version
zpm_database_version

Browser metrics Passed 4 tests

A check of browser resources used by Zephyr Project Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲20716.44 ▲2.091.55 ▼0.2437.84 ▼2.80
Dashboard /wp-admin2,359 ▲1857.75 ▲2.17134.90 ▲49.4797.12 ▲56.26
Posts /wp-admin/edit.php2,299 ▲1965.18 ▲3.2257.84 ▲15.9871.07 ▲34.13
Add New Post /wp-admin/post-new.php1,442 ▼9519.14 ▼4.15678.92 ▲66.6639.32 ▼7.84
Media Library /wp-admin/upload.php1,445 ▲455.42 ▲1.2488.91 ▼17.6481.47 ▲36.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 5 tables in the database
    • wp_zpm_activity
    • wp_zpm_messages
    • wp_zpm_tasks
    • wp_zpm_projects
    • wp_zpm_categories
  • Zombie WordPress options were found after uninstall: 10 options
    • zpm_statuses
    • db_upgraded
    • zpm_db_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • zpm_chart_data
    • widget_recent-posts
    • zpm_database_version
    • can_compress_scripts
    • widget_recent-comments

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
Everything seems fine, however this is by no means 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
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      The use statement with non-compound name 'DateTime' has no effect in wp-content/plugins/zephyr-project-manager/templates/parts/task-panel.php on line 4
    • > PHP Warning
      The use statement with non-compound name 'DateTime' has no effect in wp-content/plugins/zephyr-project-manager/templates/email_templates/task_notifications_email.php on line 8
    • > PHP Warning
      The use statement with non-compound name 'DateTime' has no effect in wp-content/plugins/zephyr-project-manager/templates/parts/project-panel.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/zephyr-project-manager/includes/strings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/zephyr-project-manager/templates/edit_members.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ZephyrProjectManager\\Base\\BaseController' not found in wp-content/plugins/zephyr-project-manager/includes/Pages/Admin.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #11, #12, #13, #2, #3, #4, #5, #6, #7, #8, #9 in zephyr-project-manager/assets to your readme.txt
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

zephyr-project-manager/zephyr-project-manager.php Passed 13 tests

The main PHP script in "Zephyr Project Manager" version 3.3.96 is automatically included on every request by WordPress
96 characters long description:
A modern project manager for WordPress to keep track of all your projects from within WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected79,300 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
PO File1412,20131,97028,354
PHP874,9342,06625,064
CSS162,78122813,834
JavaScript151,8771,04011,822
SVG300201
JSON20023
Markdown1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity57.82
▷ Minimum class complexity1.00
▷ Maximum class complexity651.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes55
▷ Abstract classes00.00%
▷ Concrete classes55100.00%
▷ Final classes11.82%
Methods992
▷ Static methods57057.46%
▷ Public methods98198.89%
▷ Protected methods50.50%
▷ Private methods60.60%
Functions208
▷ Named functions5225.00%
▷ Anonymous functions15675.00%
Constants43
▷ Global constants4297.67%
▷ Class constants12.33%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 1.01MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon_sprite.png0.79KB0.64KB▼ 19.06%
assets/img/project_scrum.png1.89KB0.84KB▼ 55.45%
assets/img/welcome-image.png58.84KB24.20KB▼ 58.87%
assets/img/icon-custom.png5.33KB2.46KB▼ 53.90%
assets/img/icon-tasks.png4.46KB2.72KB▼ 38.98%