72% eonet-project-manager

Code Review | Eonet Project Manager

WordPress plugin Eonet Project Manager scored 72% from 54 tests.

About plugin

  • Plugin page: eonet-project-man...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Apr 25, 2017
  • Latest release: Sep 13, 2018
  • Number of updates: 15
  • Update frequency: every 33.9 days
  • Top authors: alkaweb (86.67%)antonioeatgoat (20%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active / 8,108 total downloads

Benchmarks

Plugin footprint 83% 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: ▲1.97MB] [CPU: ▲4.62ms] Passed 4 tests

A check of server-side resources used by Eonet Project Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.43 ▲1.9752.42 ▲12.23
Dashboard /wp-admin5.27 ▲1.9751.92 ▲0.16
Posts /wp-admin/edit.php5.32 ▲1.9755.71 ▲9.94
Add New Post /wp-admin/post-new.php7.87 ▲1.99103.03 ▲0.87
Media Library /wp-admin/upload.php5.19 ▲1.9643.23 ▲7.49
Project Manager /wp-admin/admin.php?page=?page=eonet&eo_settings=project-manager4.9631.57
Add New /wp-admin/post-new.php?post_type=eonet_project5.3562.30
All Projects /wp-admin/edit.php?post_type=eonet_project5.2444.24
Eonet /wp-admin/admin.php?page=eonet5.2337.44
Categories /wp-admin/edit-tags.php?taxonomy=project-category&post_type=eonet_project5.1942.25

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Eonet Project Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,997 ▲26214.59 ▲0.228.41 ▲6.7838.80 ▼2.32
Dashboard /wp-admin2,267 ▲755.55 ▲0.58106.72 ▲0.3888.77 ▲42.35
Posts /wp-admin/edit.php2,168 ▲792.18 ▲0.1742.68 ▲7.9349.25 ▲12.05
Add New Post /wp-admin/post-new.php1,578 ▲4318.19 ▼5.13617.93 ▲30.7432.47 ▼18.58
Media Library /wp-admin/upload.php1,467 ▲794.76 ▲0.59100.91 ▲3.8397.53 ▲54.97
Project Manager /wp-admin/admin.php?page=?page=eonet&eo_settings=project-manager280.440.073.96
Add New /wp-admin/post-new.php?post_type=eonet_project2,9707.80190.56118.83
All Projects /wp-admin/edit.php?post_type=eonet_project1,2002.3339.3957.37
Eonet /wp-admin/admin.php?page=eonet1,1732.1031.0753.66
Categories /wp-admin/edit-tags.php?taxonomy=project-category&post_type=eonet_project1,3382.5132.5447.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 28× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/eonet-project-manager/core/bootstrap.php
    • > /wp-content/plugins/eonet-project-manager/component-project-manager/classes/Eonet_PM_TasksCollection.php
    • > /wp-content/plugins/eonet-project-manager/component-project-manager/classes/Eonet_PM_MembersCollection.php
    • > /wp-content/plugins/eonet-project-manager/component-project-manager/EonetProjectManager.php
    • > /wp-content/plugins/eonet-project-manager/core/admin/EonetAdmin.php
    • > /wp-content/plugins/eonet-project-manager/component-project-manager/classes/Eonet_PM_TemplateLoader.php
    • > /wp-content/plugins/eonet-project-manager/core/admin/pages/EonetPageThemes.php
    • > /wp-content/plugins/eonet-project-manager/component-project-manager/classes/Eonet_PM_ProjectPermission.php
    • > /wp-content/plugins/eonet-project-manager/component-project-manager/classes/Eonet_PM_Security.php
    • > /wp-content/plugins/eonet-project-manager/core/Eonet.php
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Eonet\\Core\\EonetComponents' not found in wp-content/plugins/eonet-project-manager/core/admin/pages/views/extensions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Eonet\\Core\\EonetComponents' not found in wp-content/plugins/eonet-project-manager/core/admin/views/wrapper.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/eonet-project-manager/component-project-manager/metaboxes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/eonet-project-manager/component-project-manager/include/eonet-frontend-publisher-functions.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/eonet-project-manager/core/admin/pages/views/support.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Eonet\\Core\\EonetComponents' not found in wp-content/plugins/eonet-project-manager/core/admin/pages/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eonet-project-manager/component-project-manager/include/metabox-tasks-functions.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eonet-project-manager/component-project-manager/include/template-functions.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/eonet-project-manager/component-project-manager/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Eonet\\Core\\Admin\\EonetAdmin' not found in wp-content/plugins/eonet-project-manager/core/admin/pages/views/themes.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=?page=eonet&eo_settings=project-manager
    • > Network (severe)
    wp-admin/admin.php?page=?page=eonet&eo_settings=project-manager - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: projects manager, projects, todo, tasks, basecamp...

eonet-project-manager/init.php 85% from 13 tests

The entry point to "Eonet Project Manager" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: The principal plugin file should be the same as the plugin slug ("eonet-project-manager.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected21,753 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
PHP631,7732,31113,694
SVG2034,898
Sass1572112,254
JavaScript6322271903
CSS43824

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.37
Average class complexity18.27
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes25
▷ Abstract classes14.00%
▷ Concrete classes2496.00%
▷ Final classes00.00%
Methods226
▷ Static methods4720.80%
▷ Public methods18380.97%
▷ Protected methods3515.49%
▷ Private methods83.54%
Functions59
▷ Named functions59100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.53MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/assets/images/colorpicker/alpha.png0.48KB1.68KB0.00%
core/assets/images/menu_icon.png1.94KB1.28KB▼ 34.04%
core/assets/images/themes/woffice.png446.42KB194.26KB▼ 56.48%
core/assets/images/connections_left.png32.13KB15.77KB▼ 50.90%
core/assets/images/colorpicker/hue.png0.49KB0.50KB0.00%