77% volunteer-project-manager

Code Review | Wordpress Volunteer Project Manager

WordPress plugin Wordpress Volunteer Project Manager scored 77% from 54 tests.

About plugin

  • Plugin page: volunteer-project...
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.9
  • WordPress version: 6.3.1
  • First release: Mar 6, 2014
  • Latest release: May 4, 2014
  • Number of updates: 15
  • Update frequency: every 4.0 days
  • Top authors: digiacom (60%)meitar (46.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.11ms] Passed 4 tests

Server-side resources used by Wordpress Volunteer Project Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.34 ▼0.54
Dashboard /wp-admin3.31 ▲0.0043.59 ▼7.38
Posts /wp-admin/edit.php3.36 ▲0.0044.19 ▼3.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.68 ▼16.02
Media Library /wp-admin/upload.php3.23 ▲0.0033.66 ▼1.38
Difficulty /wp-admin/edit-tags.php?taxonomy=wp-vpm-project_difficulty&post_type=wp-vpm-project3.0425.48
Projects /wp-admin/edit.php?post_type=wp-vpm-project3.0422.89
Add New Project /wp-admin/post-new.php?post_type=wp-vpm-project3.0425.00
Scope /wp-admin/edit-tags.php?taxonomy=wp-vpm-project_scope&post_type=wp-vpm-project3.0423.78

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Volunteer Project Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.25 ▼1.131.92 ▲0.1737.42 ▼3.68
Dashboard /wp-admin2,203 ▲155.84 ▼0.0496.38 ▼4.5536.89 ▼9.54
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0336.82 ▼5.5833.37 ▼1.30
Add New Post /wp-admin/post-new.php1,533 ▲523.31 ▲5.10644.03 ▼14.4157.08 ▼1.63
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0397.23 ▼21.2040.19 ▼7.74
Difficulty /wp-admin/edit-tags.php?taxonomy=wp-vpm-project_difficulty&post_type=wp-vpm-project280.440.093.80
Projects /wp-admin/edit.php?post_type=wp-vpm-project280.440.073.38
Add New Project /wp-admin/post-new.php?post_type=wp-vpm-project280.440.103.77
Scope /wp-admin/edit-tags.php?taxonomy=wp-vpm-project_scope&post_type=wp-vpm-project280.440.093.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just 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 register_activation_hook() in wp-content/plugins/volunteer-project-manager/wp-vpmanager.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/edit-tags.php?taxonomy=wp-vpm-project_difficulty&post_type=wp-vpm-project
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=wp-vpm-project_difficulty&post_type=wp-vpm-project - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit.php?post_type=wp-vpm-project
    • > Network (severe)
    wp-admin/edit.php?post_type=wp-vpm-project - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/post-new.php?post_type=wp-vpm-project
    • > Network (severe)
    wp-admin/post-new.php?post_type=wp-vpm-project - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=wp-vpm-project_scope&post_type=wp-vpm-project
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=wp-vpm-project_scope&post_type=wp-vpm-project - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Project listed with the shortcode functions placed above and below the content.), #2 (Admin metabox. Currently, meta options are hardcoded.)
The official readme.txt is a good inspiration

volunteer-project-manager/wp-vpmanager.php 77% from 13 tests

The main PHP file in "Wordpress Volunteer Project Manager" ver. 0.3.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("volunteer-project-manager.php" instead of "wp-vpmanager.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 plugin675 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS13965385
PHP12822285
JavaScript1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.37MB with 0.21MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png369.36KB109.21KB▼ 70.43%
screenshot-2.png12.52KB7.40KB▼ 40.93%