67% projectify-lite

Code Review | Projectify Lite

WordPress plugin Projectify Lite scored67%from 54 tests.

About plugin

  • Plugin page: projectify-lite
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2021
  • Latest release: Oct 9, 2022
  • Number of updates: 12
  • Update frequency: every 44.8 days
  • Top authors: beastthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,337 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
Install script ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▲1.99ms] Passed 4 tests

Server-side resources used by Projectify Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.55 ▼2.02
Dashboard /wp-admin4.03 ▲0.7356.76 ▲8.14
Posts /wp-admin/edit.php4.09 ▲0.7359.64 ▲8.63
Add New Post /wp-admin/post-new.php6.55 ▲0.6696.23 ▼6.78
Media Library /wp-admin/upload.php3.89 ▲0.6650.79 ▲11.71
Projects /wp-admin/admin.php?page=projectify-pro-projects3.9952.09
Tasks /wp-admin/admin.php?page=projectify-pro-tasks3.9554.68
Settings /wp-admin/admin.php?page=projectify-pro-settings4.0046.76
Announcements /wp-admin/admin.php?page=projectify-pro-announcements3.9247.04
Members /wp-admin/admin.php?page=projectify-pro-members3.9548.62
Dashboard /wp-admin/admin.php?page=projectify-pro-panel4.0751.39
Go Pro /wp-admin/admin.php?page=projectify-pro-gopro3.9151.00
Teams /wp-admin/admin.php?page=projectify-pro-teams3.9449.66

Server storage [IO: ▲10.77MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 1,733 new files
Database: 9 new tables, 9 new options
New tables
wp_btpjy_members
wp_btpjy_announcements
wp_btpjy_teams
wp_btpjy_departments
wp_btpjy_projects
wp_btpjy_tasks
wp_btpjy_files
wp_btpjy_comments
wp_btpjy_messages
New WordPress options
btpjy_email_templates
btpjy_settings
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
btpjy_email_settings
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Projectify Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.66 ▼1.071.58 ▼0.2240.61 ▼6.27
Dashboard /wp-admin2,254 ▲665.91 ▲1.02107.25 ▼2.9640.15 ▼0.83
Posts /wp-admin/edit.php2,140 ▲512.01 ▼0.0140.30 ▲0.3435.75 ▲0.11
Add New Post /wp-admin/post-new.php1,571 ▲5822.97 ▲5.57658.08 ▼59.7859.62 ▼0.31
Media Library /wp-admin/upload.php1,433 ▲424.22 ▼0.0197.63 ▼14.0343.26 ▲0.96
Projects /wp-admin/admin.php?page=projectify-pro-projects1,5053.6564.3147.86
Tasks /wp-admin/admin.php?page=projectify-pro-tasks1,6804.4277.1763.89
Settings /wp-admin/admin.php?page=projectify-pro-settings4,48513.73419.5250.85
Announcements /wp-admin/admin.php?page=projectify-pro-announcements1,4504.1666.8246.80
Members /wp-admin/admin.php?page=projectify-pro-members1,4143.8261.3334.70
Dashboard /wp-admin/admin.php?page=projectify-pro-panel1,7203.8359.9647.03
Go Pro /wp-admin/admin.php?page=projectify-pro-gopro1,3473.7358.6185.87
Teams /wp-admin/admin.php?page=projectify-pro-teams1,2713.6252.3733.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 9 tables
    • wp_btpjy_departments
    • wp_btpjy_messages
    • wp_btpjy_comments
    • wp_btpjy_projects
    • wp_btpjy_teams
    • wp_btpjy_announcements
    • wp_btpjy_files
    • wp_btpjy_tasks
    • wp_btpjy_members
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • btpjy_email_settings
    • btpjy_settings
    • btpjy_email_templates
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
    • > GET request to /wp-admin/admin.php?page=projectify-pro-settings
    • > Notice in wp-content/plugins/projectify-lite/admin/inc/views/settings/notification.php+34
    Undefined variable: classs

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 60× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/projectify-lite/admin/inc/actions/projectify-announce-action.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/projectify-lite/admin/inc/views/tasks/view.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/projectify-lite/admin/inc/views/settings/general.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/projectify-lite/admin/inc/views/announements/add.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/projectify-lite/admin/inc/views/settings/email.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/projectify-lite/admin/inc/views/members/add.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/projectify-lite/admin/inc/views/settings/notification.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/projectify-lite/admin/inc/views/projects/add.php:8
    • > PHP Fatal error
      require_once(): Failed opening required 'BTPJL_PLUGIN_DIR_PATH/admin/inc/views/nav/nav.php' (include_path='.:/usr/share/php') in wp-content/plugins/projectify-lite/admin/inc/controllers/projectify-settings-panel.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/projectify-lite/admin/inc/views/teams/view.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7 in projectify-lite/assets to your readme.txt
The official readme.txt might help

projectify-lite/projectify-lite.php 85% from 13 tests

The main file in "Projectify Lite" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 385 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected120,858 lines of code in 1,708 files:
LanguageFilesBlank linesComment linesLines of code
CSS263,7229689,084
SVG1,61611516,340
PHP5456813413,713
JavaScript12204861,721

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity41.09
▷ Minimum class complexity2.00
▷ Maximum class complexity127.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods116
▷ Static methods11296.55%
▷ Public methods11397.41%
▷ Protected methods10.86%
▷ Private methods21.72%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 1.00MB with 0.74MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/clockinator.png623.29KB182.37KB▼ 70.74%
assets/images/projectify.png403.94KB92.00KB▼ 77.22%