83% project-manager

Code Review | Project Manager

WordPress plugin Project Manager scored83%from 54 tests.

About plugin

  • Plugin page: project-manager
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2023
  • Latest release: Jan 25, 2023
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: alexisgrolot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼12.00ms] Passed 4 tests

Analyzing server-side resources used by Project Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.47 ▲0.49
Dashboard /wp-admin3.36 ▲0.0143.07 ▼16.62
Posts /wp-admin/edit.php3.41 ▲0.0545.54 ▼6.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0578.96 ▼25.34
Media Library /wp-admin/upload.php3.28 ▲0.0535.21 ▲5.55
Add New /wp-admin/post-new.php?post_type=project3.4351.34
Project Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=project3.2830.93
Projects /wp-admin/edit.php?post_type=project3.3332.60

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Project Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8814.63 ▲0.251.99 ▲0.4043.75 ▲0.90
Dashboard /wp-admin2,237 ▲464.85 ▼0.19107.53 ▲10.2236.31 ▼6.76
Posts /wp-admin/edit.php2,120 ▲282.06 ▲0.0538.92 ▼2.2439.59 ▲3.28
Add New Post /wp-admin/post-new.php1,540 ▲2617.81 ▼0.02654.74 ▲0.5062.58 ▲8.16
Media Library /wp-admin/upload.php1,419 ▲374.28 ▲0.1094.58 ▼1.3943.44 ▲0.12
Add New /wp-admin/post-new.php?post_type=project2,8217.88171.0669.25
Project Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=project1,2962.1428.2626.17
Projects /wp-admin/edit.php?post_type=project1,1581.9331.2332.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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
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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-manager/Project_Manager.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (This screenshot shows the project management interface of our "Project Manager" plugin. This interface allows you to see all current projects at a glance, with information such as project name, due date, percentage of completion, team members, etc. It is possible to filter projects by category, add a new project, and perform actions on existing projects.), #2 (This screenshot shows the task management interface of our "Project Manager" plugin. This interface allows you to see all tasks assigned to team members, with information such as task name, deadline, assigned team member, percentage of completion, etc. It is possible to filter tasks by project, add a new task, and perform actions on existing tasks.)
You can take inspiration from this readme.txt

project-manager/Project_Manager.php 85% from 13 tests

The entry point to "Project Manager" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("project-manager.php" instead of "Project_Manager.php")
  • Description: The description should be shorter than 140 characters (currently 227 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin132 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11827130
Markdown1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png114.34KB40.68KB▼ 64.43%
assets/screenshot-2.png119.17KB40.41KB▼ 66.09%