73% zwm-zeumic-work-management

Code Review | ZWM Zeumic Work Management

WordPress plugin ZWM Zeumic Work Management scored73%from 54 tests.

About plugin

  • Plugin page: zwm-zeumic-work-m...
  • Plugin version: 1.11.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2016
  • Latest release: Jun 14, 2023
  • Number of updates: 93
  • Update frequency: every 26.6 days
  • Top authors: zeumic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,865 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: ▲0.26MB] [CPU: ▲2.87ms] Passed 4 tests

A check of server-side resources used by ZWM Zeumic Work Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2339.68 ▲0.57
Dashboard /wp-admin3.61 ▲0.3057.56 ▲11.16
Posts /wp-admin/edit.php3.66 ▲0.3052.21 ▲2.82
Add New Post /wp-admin/post-new.php6.14 ▲0.2691.36 ▼3.08
Media Library /wp-admin/upload.php3.47 ▲0.2446.12 ▲12.98
Column Widths /wp-admin/admin.php?page=zwm-cols3.4341.96
Use ZWM 0 /wp-admin/admin.php?page=zwm3.4542.73
Priorities /wp-admin/edit.php?post_type=zwm_priority3.5741.87
Zeumic Shared Settings /wp-admin/admin.php?page=zsc-settings3.4339.20
Departments /wp-admin/edit.php?post_type=zwm_department3.5745.37
Settings /wp-admin/admin.php?page=zwm-settings3.4341.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 56 new files
Database: 2 new tables, 7 new options
New tables
wp_zwm_list_users
wp_zwm_list
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
zwm_version

Browser metrics Passed 4 tests

An overview of browser requirements for ZWM Zeumic Work Management
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11514.35 ▼0.021.76 ▲0.2143.65 ▲0.67
Dashboard /wp-admin2,267 ▲875.60 ▼0.0589.56 ▲3.1143.61 ▲2.99
Posts /wp-admin/edit.php2,169 ▲662.02 ▼0.0135.60 ▼4.1034.52 ▼3.55
Add New Post /wp-admin/post-new.php1,588 ▲6223.18 ▼0.46647.01 ▲13.5058.53 ▲4.01
Media Library /wp-admin/upload.php1,469 ▲724.24 ▲0.05114.60 ▲11.8048.08 ▲4.90
Column Widths /wp-admin/admin.php?page=zwm-cols9382.1727.7628.83
Use ZWM 0 /wp-admin/admin.php?page=zwm1,3422.7255.0027.37
Priorities /wp-admin/edit.php?post_type=zwm_priority1,1331.9432.3934.05
Zeumic Shared Settings /wp-admin/admin.php?page=zsc-settings8932.0525.6225.57
Departments /wp-admin/edit.php?post_type=zwm_department1,1331.9131.1430.64
Settings /wp-admin/admin.php?page=zwm-settings9042.2027.1728.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_zwm_list
    • wp_zwm_list_users
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • zwm_version
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Zeumic\\ZSC\\Core\\trailingslashit() in wp-content/plugins/zwm-zeumic-work-management/zsc/load.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Zeumic\\ZSC\\Core\\Singleton' not found in wp-content/plugins/zwm-zeumic-work-management/zsc/src/Plugin.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Zeumic\\ZSC\\Core\\Plugin' not found in wp-content/plugins/zwm-zeumic-work-management/zsc/src/Common.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/zwm-zeumic-work-management/zsc/zsc-zeumic-suite-common.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Zeumic\\ZSC\\Core\\PluginCore' not found in wp-content/plugins/zwm-zeumic-work-management/src/Plugin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/zwm-zeumic-work-management/zsc/zsc-zeumic-suite-common.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Zeumic\\ZSC\\Core\\PluginDistributable' not found in wp-content/plugins/zwm-zeumic-work-management/zsc/src/PluginCore.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Zeumic\\ZSC\\Core\\PluginDistributable' not found in wp-content/plugins/zwm-zeumic-work-management/zsc/src/PluginExt.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Zeumic\\ZSC\\Core\\Plugin' not found in wp-content/plugins/zwm-zeumic-work-management/zsc/src/PluginDistributable.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Zeumic\\ZSC\\Core\\Singleton' not found in wp-content/plugins/zwm-zeumic-work-management/zsc/src/PluginLoader.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 26 tag instead of maximum 10
You can take inspiration from this readme.txt

zwm-zeumic-work-management/zwm-zeumic-work-management.php 85% from 13 tests

The principal PHP file in "ZWM Zeumic Work Management" v. 1.11.18 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.0.0")
  • Description: Please keep the plugin description shorter than 140 characters (currently 255 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
Good job! No executable or dangerous file extensions detected6,935 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript197752813,188
PHP185261,0252,862
CSS815882885

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.41
Average class complexity36.50
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes541.67%
▷ Concrete classes758.33%
▷ Final classes00.00%
Methods189
▷ Static methods52.65%
▷ Public methods17492.06%
▷ Protected methods52.65%
▷ Private methods105.29%
Functions41
▷ Named functions1639.02%
▷ Anonymous functions2560.98%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
zsc/vendor/jquery-ui/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
zsc/vendor/jquery-ui/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
zsc/img/refresh.png14.89KB0.50KB▼ 96.65%
zsc/vendor/jquery-ui/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
zsc/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%