74% awesome-project-manager

Code Review | Awesome Project Manager

WordPress plugin Awesome Project Manager scored74%from 54 tests.

About plugin

  • Plugin page: awesome-project-m...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 6.3.1
  • First release: Feb 2, 2018
  • Latest release: Mar 7, 2020
  • Number of updates: 46
  • Update frequency: every 16.6 days
  • Top authors: promy89 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /6,963 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▼4.51ms] Passed 4 tests

This is a short check of server-side resources used by Awesome Project Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.75 ▲3.11
Dashboard /wp-admin4.02 ▲0.6852.88 ▼5.20
Posts /wp-admin/edit.php4.08 ▲0.7249.15 ▲0.03
Add New Post /wp-admin/post-new.php6.61 ▲0.7282.26 ▼15.97
Media Library /wp-admin/upload.php3.93 ▲0.7039.72 ▲7.28

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: 9 new tables, 6 new options
New tables
wp_fpm_projects
wp_fpm_folders
wp_fpm_lists
wp_fpm_comments
wp_fpm_activities
wp_fpm_subtasks
wp_fpm_todos
wp_fpm_project_user
wp_fpm_messages
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Project Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,037 ▲30215.06 ▲0.685.47 ▲3.8944.50 ▲1.95
Dashboard /wp-admin2,363 ▲1866.11 ▲0.48104.21 ▲14.5739.73 ▲3.73
Posts /wp-admin/edit.php2,291 ▲1913.35 ▲1.3248.59 ▲8.6831.58 ▼10.93
Add New Post /wp-admin/post-new.php1,549 ▲2323.04 ▼0.08664.51 ▼21.7437.00 ▼19.11
Media Library /wp-admin/upload.php1,428 ▲314.05 ▼0.1581.05 ▼21.7642.30 ▼5.64
Assignments /wp-admin/admin.php?page=fusion-pm#/my/assignments1,2265.2289.2635.00
Projects /wp-admin/admin.php?page=fusion-pm#/1,2645.4795.6931.83
My Activity /wp-admin/admin.php?page=fusion-pm#/my/activity1,2255.2889.7628.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 9 tables in the database
    • wp_fpm_lists
    • wp_fpm_subtasks
    • wp_fpm_activities
    • wp_fpm_projects
    • wp_fpm_folders
    • wp_fpm_project_user
    • wp_fpm_todos
    • wp_fpm_comments
    • wp_fpm_messages
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/awesome-project-manager/views/admin.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: calendar, project manager, project, todo list, files...

awesome-project-manager/fusion-pm.php 92% from 13 tests

The principal PHP file in "Awesome Project Manager" v. 1.0.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("awesome-project-manager.php" instead of "fusion-pm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected10,188 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP159423443,083
SVG1002,671
JavaScript34684272,517
CSS42643011,917

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity23.57
▷ Minimum class complexity2.00
▷ Maximum class complexity208.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods184
▷ Static methods158.15%
▷ Public methods17997.28%
▷ Protected methods00.00%
▷ Private methods52.72%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-bg_inset-soft_95_fef1ec_1x100.png0.12KB0.16KB0.00%
assets/css/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
assets/css/images/ui-icons_f6cf3b_256x240.png8.68KB4.11KB▼ 52.68%
assets/css/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%