73% zwm-zeumic-work-management

Code Review | ZWM Zeumic Work Management

WordPress plugin ZWM Zeumic Work Management scored 73% from 54 tests.

About plugin

  • Plugin page: zwm-zeumic-work-m...
  • Plugin version: 1.11.17
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.7
  • WordPress version: 5.8.1
  • First release: Sep 14, 2016
  • Latest release: Dec 29, 2021
  • Number of updates: 92
  • Update frequency: every 21.1 days
  • Top authors: zeumic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,590 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.28MB] [CPU: ▼299.41ms] 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.08 ▲0.2549.19 ▲19.99
Dashboard /wp-admin3.40 ▲0.3479.00 ▲37.06
Posts /wp-admin/edit.php3.46 ▲0.3555.32 ▲13.81
Add New Post /wp-admin/post-new.php5.70 ▲0.26140.86 ▼1,257.26
Media Library /wp-admin/upload.php3.28 ▲0.2761.92 ▲25.82
Priorities /wp-admin/edit.php?post_type=zwm_priority3.3957.19
Column Widths /wp-admin/admin.php?page=zwm-cols3.2537.35
Zeumic Shared Settings /wp-admin/admin.php?page=zsc-settings3.2530.10
Departments /wp-admin/edit.php?post_type=zwm_department3.3933.18
Use ZWM 0 /wp-admin/admin.php?page=zwm3.2635.71
Settings /wp-admin/admin.php?page=zwm-settings3.2538.21

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, 1 new option
New tables
wp_zwm_list
wp_zwm_list_users
New WordPress 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 /3,773 ▲13814.62 ▼1.0915.05 ▲9.77145.23 ▲66.33
Dashboard /wp-admin3,038 ▲1315.99 ▼0.11201.70 ▲57.78281.87 ▲94.64
Posts /wp-admin/edit.php2,826 ▲902.75 ▲0.00102.05 ▲36.07216.32 ▲63.37
Add New Post /wp-admin/post-new.php1,642 ▼3016.96 ▼1.801,270.38 ▲906.61622.95 ▲452.72
Media Library /wp-admin/upload.php1,891 ▲875.06 ▲0.01446.48 ▲289.16862.90 ▲673.66
Priorities /wp-admin/edit.php?post_type=zwm_priority1,4832.68157.79475.39
Column Widths /wp-admin/admin.php?page=zwm-cols1,2012.5381.07341.52
Zeumic Shared Settings /wp-admin/admin.php?page=zsc-settings1,1532.4066.98270.56
Departments /wp-admin/edit.php?post_type=zwm_department1,4832.6979.01287.49
Use ZWM 0 /wp-admin/admin.php?page=zwm1,6313.65115.75331.51
Settings /wp-admin/admin.php?page=zwm-settings1,1702.53114.59342.22

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 1 option in the database
    • zwm_version

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: 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\\PluginCore' not found in wp-content/plugins/zwm-zeumic-work-management/src/Plugin.php:5
    • > 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: 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\\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\\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\\Singleton' not found in wp-content/plugins/zwm-zeumic-work-management/zsc/src/PluginLoader.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: Call to undefined function get_file_data() in wp-content/plugins/zwm-zeumic-work-management/zsc/zsc-zeumic-suite-common.php:20

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.17 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 255 characters long)
  • Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.0.0")

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_444444_256x240.png6.83KB4.17KB▼ 38.86%
zsc/img/refresh.png14.89KB0.50KB▼ 96.65%
zsc/vendor/jquery-ui/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
zsc/vendor/jquery-ui/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
zsc/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%