10% wp-project-managment-ultimate

Code Review | WP Project Managment Ultimate

WordPress plugin WP Project Managment Ultimate scored10%from 54 tests.

About plugin

  • Plugin page: wp-project-managm...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3
  • WordPress version: 6.3.1
  • First release: Dec 20, 2011
  • Latest release: Apr 2, 2012
  • Number of updates: 18
  • Update frequency: every 5.7 days
  • Top authors: nohalfpixels (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /10,232 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-project-managment-ultimate/WPPM-Widget.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; WPPM_Widget has a deprecated constructor

Server metrics [RAM: ▼1.60MB] [CPU: ▼46.56ms] Passed 4 tests

This is a short check of server-side resources used by WP Project Managment Ultimate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.40 ▼1.0612.25 ▼24.47
Dashboard /wp-admin2.42 ▼0.937.48 ▼51.17
Posts /wp-admin/edit.php2.42 ▼0.948.69 ▼35.51
Add New Post /wp-admin/post-new.php2.42 ▼3.479.01 ▼72.78
Media Library /wp-admin/upload.php2.42 ▼0.818.21 ▼26.78
Type /wp-admin/edit-tags.php?taxonomy=project-type&post_type=projects2.428.03
Managment Options /wp-admin/edit.php?post_type=projects&page=wp_pm2.427.39
Projects /wp-admin/edit.php?post_type=projects2.427.70
Add New /wp-admin/post-new.php?post_type=projects2.427.58

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_wppm-widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Project Managment Ultimate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.74 ▲0.071.78 ▲0.2946.24 ▲6.88
Dashboard /wp-admin2,225 ▲334.90 ▼0.03100.56 ▼8.1683.52 ▲42.19
Posts /wp-admin/edit.php2,126 ▲372.00 ▼0.0234.22 ▼0.6433.90 ▲1.53
Add New Post /wp-admin/post-new.php1,577 ▲5818.58 ▼4.43660.83 ▼5.5756.40 ▲5.49
Media Library /wp-admin/upload.php1,422 ▲314.13 ▼0.07100.96 ▲4.8846.34 ▲4.55
Type /wp-admin/edit-tags.php?taxonomy=project-type&post_type=projects1,2992.1328.7330.86
Managment Options /wp-admin/edit.php?post_type=projects&page=wp_pm1,9056.59139.75107.69
Projects /wp-admin/edit.php?post_type=projects1,3972.0035.5227.33
Add New /wp-admin/post-new.php?post_type=projects2,9888.04190.86129.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-project-managment-ultimate/WPPM-Widget.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; WPPM_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_wppm-widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% 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)
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=projects
    • > Deprecated in wp-content/plugins/wp-project-managment-ultimate/WPPM-Widget.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; WPPM_Widget has a deprecated constructor
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=projects
    • > Deprecated in wp-content/plugins/wp-project-managment-ultimate/WPPM-Ultimate.php+177
    Non-static method WPPM_Ultimate_Usage::option() should not be called statically
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=projects
    • > Notice in wp-content/plugins/wp-project-managment-ultimate/WPPM-Usage.php+17
    Trying to access array offset on value of type bool
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=projects
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in WPPM_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=projects
    • > Warning in wp-content/plugins/wp-project-managment-ultimate/WPPM-Metaboxes.php+152
    Illegal string offset '_wppm_project_meta_paid'
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=projects
    • > Notice in wp-content/plugins/wp-project-managment-ultimate/WPPM-Metaboxes.php+162
    Uninitialized string offset: 0
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=projects
    • > Warning in wp-content/plugins/wp-project-managment-ultimate/WPPM-Metaboxes.php+162
    Illegal string offset '_wppm_project_meta_completed'

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-project-managment-ultimate/WPPM-Ultimate.php:51
    • > PHP Fatal error
      Uncaught Error: Class 'WPPM_Ultimate' not found in wp-content/plugins/wp-project-managment-ultimate/WPPM-Metaboxes.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WPPM_Ultimate' not found in wp-content/plugins/wp-project-managment-ultimate/WPPM-Notifications.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WPPM_Ultimate' not found in wp-content/plugins/wp-project-managment-ultimate/WPPM-Usage.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WPPM_Ultimate' not found in wp-content/plugins/wp-project-managment-ultimate/WPPM-Help.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-project-managment-ultimate/WPPM-Shortcode.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-project-managment-ultimate/template/single-projects.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-project-managment-ultimate/WPPM-Widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WPPM_Ultimate' not found in wp-content/plugins/wp-project-managment-ultimate/WPPM-Options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (The Projects List Screen - Contains additional fields in the post table to quickly see and filter projects. Projects sortable by end date, amount completed, or amount paid. Job numbers, Quote numbers, Invoice numbers (if used) can also bee seen here at a quick glance.), #2 (The Project Edit Screen - Contains Project Title, Description, Project Type (taxomony), Project Attachments (editable | deletable), Project Details (including: "start date", "end date", "job number", "quote number", "invoice number", "paid amount", "completed amount"), and project users list. All editable.), #3 (Project Start Date / End Date Meta Box - Uses jQuery datepicker for easier date picking.), #4 (Project Type (taxomony) - Project Taxomony used to seperate projects by type (example types could include: "web", "print", "video", "animation", "app development", "etc").), #5 (The Settings Page - This is where you can configure the settings for the notifications, allow/disallow the comment uploads feature, and change text/css for the included page template.), #6 (The Page Template - The included page template is very simply styled to cater for as many themes as possible. All the css is well selected and targeting elements is very easy. Or you can just copy the content of the template files to a new template within your theme and customize to your hearts content.)
Please take inspiration from this readme.txt

wp-project-managment-ultimate/WPPM-Ultimate.php 85% from 13 tests

The primary PHP file in "WP Project Managment Ultimate" version 1.0.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-project-managment-ultimate.php" instead of "WPPM-Ultimate.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 347 characters long)

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 detected1,785 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP99016541,265
CSS350152416
JavaScript22113104

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity23.86
▷ Minimum class complexity3.00
▷ Maximum class complexity58.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods74
▷ Static methods00.00%
▷ Public methods7094.59%
▷ Protected methods00.00%
▷ Private methods45.41%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
21 compressed PNG files occupy 1.10MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png188.68KB79.83KB▼ 57.69%
includes/css/ui/custom-theme/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
images/16/icon.png0.75KB0.86KB0.00%
includes/css/ui/custom-theme/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
includes/css/ui/custom-theme/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%