72% vmax-project-manager

Code Review | Vmax Project Manager

WordPress plugin Vmax Project Manager scored 72% from 54 tests.

About plugin

  • Plugin page: vmax-project-manager
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.2
  • WordPress version: 5.8.1
  • First release: Oct 16, 2017
  • Latest release: Oct 16, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: vmaxstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 629 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.47ms] Passed 4 tests

Analyzing server-side resources used by Vmax Project Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.36 ▲10.70
Dashboard /wp-admin3.09 ▲0.0342.01 ▼7.13
Posts /wp-admin/edit.php3.14 ▲0.0344.65 ▼0.20
Add New Post /wp-admin/post-new.php5.45 ▲0.0191.17 ▼559.28
Media Library /wp-admin/upload.php3.03 ▲0.0232.51 ▲4.73
Payment Report /wp-admin/admin.php?page=vpm-payment3.0125.38
Staff /wp-admin/admin.php?page=vpm-staff3.0129.33
Projects /wp-admin/admin.php?page=vpm-project3.0122.14
Clients /wp-admin/admin.php?page=vpm-client3.0127.94
Create project /wp-admin/admin.php?page=vpm-create-project3.0127.77

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: 7 new tables, no new options
New tables
wp_vpm_project
wp_vpm_task
wp_vpm_client
wp_vpm_staff
wp_vpm_file
wp_vpm_payment
wp_vpm_invoice

Browser metrics Passed 4 tests

Checking browser requirements for Vmax Project Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,728 ▲13215.80 ▲0.238.49 ▼2.0945.50 ▼3.85
Dashboard /wp-admin3,016 ▲795.92 ▼0.05136.68 ▼28.21116.93 ▲2.01
Posts /wp-admin/edit.php2,785 ▲462.71 ▼0.0064.23 ▼4.4888.71 ▼6.77
Add New Post /wp-admin/post-new.php1,529 ▼16118.76 ▼0.08370.36 ▼29.90102.67 ▼3.50
Media Library /wp-admin/upload.php1,856 ▲435.04 ▼0.01143.83 ▲4.25125.63 ▲7.59
Payment Report /wp-admin/admin.php?page=vpm-payment1,3012.3758.46104.74
Staff /wp-admin/admin.php?page=vpm-staff1,1582.1656.5690.28
Projects /wp-admin/admin.php?page=vpm-project1,1262.1354.2582.77
Clients /wp-admin/admin.php?page=vpm-client1,1582.3754.9688.64
Create project /wp-admin/admin.php?page=vpm-create-project1,3572.3659.9878.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure failed, leaving 7 tables in the database
    • wp_vpm_staff
    • wp_vpm_file
    • wp_vpm_payment
    • wp_vpm_invoice
    • wp_vpm_task
    • wp_vpm_client
    • wp_vpm_project

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 90 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vpm-create-project
    • > Notice in wp-content/plugins/vmax-project-manager/view/notification.php+38
    Undefined index: notify
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vpm-create-project
    • > Notice in wp-content/plugins/vmax-project-manager/view/notification.php+45
    Undefined variable: message

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/vmax-project-manager/vpm.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/vmax-project-manager/controller/controller.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can look at the official readme.txt

vmax-project-manager/vpm.php 92% from 13 tests

"Vmax Project Manager" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("vmax-project-manager.php" instead of "vpm.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
There were no executable files found in this plugin9,227 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS20157,008
PHP31371682,217
JavaScript1052

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 1.07MB with 1.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icons/create_staff.png64.32KB3.09KB▼ 95.19%
assets/icons/payment_list.png64.32KB2.51KB▼ 96.09%
assets/icons/delete.png64.32KB2.25KB▼ 96.50%
assets/icons/active.png64.32KB4.00KB▼ 93.78%
assets/icons/create_task.png64.32KB2.55KB▼ 96.03%