10% front-desk

Code Review | Front Desk

WordPress plugin Front Desk scored10%from 54 tests.

About plugin

  • Plugin page: front-desk
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Jun 28, 2017
  • Latest release: Jun 28, 2017
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: japalekhin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /796 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-content/plugins/front-desk/classes/vendor/symfony/class-loader/Psr4ClassLoader.php+14
    The Symfony\Component\ClassLoader\Psr4ClassLoader class is deprecated since version 3.3 and will be removed in 4.0. Use Composer instead.

Server metrics [RAM: ▼1.84MB] [CPU: ▼47.79ms] Passed 4 tests

An overview of server-side resources used by Front Desk
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.325.22 ▼36.42
Dashboard /wp-admin2.17 ▼1.146.78 ▼41.79
Posts /wp-admin/edit.php2.17 ▼1.196.22 ▼35.56
Add New Post /wp-admin/post-new.php2.17 ▼3.726.11 ▼77.37
Media Library /wp-admin/upload.php2.17 ▼1.065.97 ▼26.43
Menu Integration /wp-admin/admin.php?page=front-desk-menu2.175.69
Theme /wp-admin/admin.php?page=front-desk2.176.51
Pages /wp-admin/admin.php?page=front-desk-pages2.175.87
Settings /wp-admin/admin.php?page=front-desk-settings2.176.82

Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Front Desk
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.34 ▼0.451.81 ▲0.1443.69 ▼6.40
Dashboard /wp-admin2,226 ▲525.68 ▲0.0985.24 ▼17.0137.86 ▼5.66
Posts /wp-admin/edit.php2,128 ▲282.02 ▲0.0633.69 ▼1.2533.66 ▼4.64
Add New Post /wp-admin/post-new.php1,560 ▲3418.56 ▼4.49622.74 ▼42.7073.14 ▲15.03
Media Library /wp-admin/upload.php1,434 ▲344.16 ▼0.0599.27 ▲3.6041.74 ▼3.47
Menu Integration /wp-admin/admin.php?page=front-desk-menu8982.0223.7923.94
Theme /wp-admin/admin.php?page=front-desk1,2122.0222.9436.89
Pages /wp-admin/admin.php?page=front-desk-pages9472.0425.2827.56
Settings /wp-admin/admin.php?page=front-desk-settings8752.0223.8627.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-content/plugins/front-desk/classes/vendor/symfony/class-loader/Psr4ClassLoader.php+14
    The Symfony\Component\ClassLoader\Psr4ClassLoader class is deprecated since version 3.3 and will be removed in 4.0. Use Composer instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=front-desk-settings
    • > User deprecated in wp-content/plugins/front-desk/classes/vendor/symfony/class-loader/Psr4ClassLoader.php+14
    The Symfony\Component\ClassLoader\Psr4ClassLoader class is deprecated since version 3.3 and will be removed in 4.0. Use Composer instead.

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/front-desk/front-desk.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/front-desk/views/admin/settings.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Alekhin\\FrontDesk\\Profile' not found in wp-content/plugins/front-desk/views/profile.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'auth_twostep' not found in wp-content/plugins/front-desk/views/verify.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_registered_nav_menus() in wp-content/plugins/front-desk/views/admin/menu.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Theme' not found in wp-content/plugins/front-desk/views/reset.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Alekhin\\FrontDesk\\Admin\\Pages' not found in wp-content/plugins/front-desk/views/admin/pages.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/front-desk/classes/Alekhin/FrontDesk/TwoStep.php:217
    • > PHP Fatal error
      Uncaught Error: Class 'Alekhin\\FrontDesk\\Admin\\Pages' not found in wp-content/plugins/front-desk/views/admin/theme.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Alekhin\\FrontDesk\\Admin\\Theme' not found in wp-content/plugins/front-desk/views/recover.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Alekhin\\FrontDesk\\Admin\\Theme' not found in wp-content/plugins/front-desk/views/login.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: reset password, register, registration sign-up, front-end, sign-in...

front-desk/front-desk.php 92% from 13 tests

This is the main PHP file of "Front Desk" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,081 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
PHP456417863,198
SVG444422
JSON500223
CSS210165
Markdown513045
XML13028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.33
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods198
▷ Static methods13266.67%
▷ Public methods18693.94%
▷ Protected methods00.00%
▷ Private methods126.06%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants48
▷ Global constants1429.17%
▷ Class constants3470.83%
▷ Public constants34100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin