10% webuser-all-in-one

Code Review | WebUser All in one

WordPress plugin WebUser All in one scored10%from 54 tests.

About plugin

  • Plugin page: webuser-all-in-one
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2014
  • Latest release: Dec 13, 2016
  • Number of updates: 10
  • Update frequency: every 76.6 days
  • Top authors: Sem Wong (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /844 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.68ms] Passed 4 tests

An overview of server-side resources used by WebUser All in one
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.73 ▼38.70
Dashboard /wp-admin2.05 ▼1.266.66 ▼46.52
Posts /wp-admin/edit.php2.05 ▼1.316.57 ▼43.02
Add New Post /wp-admin/post-new.php2.05 ▼3.846.73 ▼94.46
Media Library /wp-admin/upload.php2.05 ▼1.186.68 ▼27.69
Google Apps Login /wp-admin/options-general.php?page=galogin_list_options2.056.47

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 116 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
dc_options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

An overview of browser requirements for WebUser All in one
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15914.57 ▼0.091.92 ▲0.2630.83 ▼11.73
Dashboard /wp-admin2,275 ▲955.84 ▲0.1988.39 ▼6.4344.07 ▲0.46
Posts /wp-admin/edit.php2,129 ▲262.02 ▼0.1335.26 ▼6.5934.69 ▼3.27
Add New Post /wp-admin/post-new.php691 ▼8461.71 ▼21.5219.99 ▼687.965.50 ▼52.19
Media Library /wp-admin/upload.php1,426 ▲264.18 ▼0.06109.17 ▲3.5050.67 ▲5.31
Google Apps Login /wp-admin/options-general.php?page=galogin_list_options8852.1426.0533.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • widget_theysaidso_widget
    • dc_options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=galogin_list_options
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=galogin_list_options
    • > User deprecated in wp-includes/functions.php+5453
    Function force_ssl_login is deprecated since version 4.4.0! Use force_ssl_admin() instead.

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
The following issues need your attention
  • 112× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/webuser-all-in-one/admin_options.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'GoogleGAL_Service' not found in wp-content/plugins/webuser-all-in-one/core/Google/Service/Webfonts.php:32
    • > PHP Warning
      require_once(Google/Model.php): failed to open stream: No such file or directory in wp-content/plugins/webuser-all-in-one/core/Google/Collection.php on line 3
    • > PHP Warning
      require_once(Google/Cache/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/webuser-all-in-one/core/Google/Cache/Apc.php on line 18
    • > PHP Warning
      require_once(Google/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/webuser-all-in-one/core/Google/Cache/Exception.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'GoogleGAL_Service' not found in wp-content/plugins/webuser-all-in-one/core/Google/Service/Bigquery.php:32
    • > PHP Fatal error
      require_once(): Failed opening required 'Google/Cache/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/webuser-all-in-one/core/Google/Cache/File.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'GoogleGAL_Service' not found in wp-content/plugins/webuser-all-in-one/core/Google/Service/Audit.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'GoogleGAL_Service' not found in wp-content/plugins/webuser-all-in-one/core/Google/Service/Analytics.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'GoogleGAL_Service' not found in wp-content/plugins/webuser-all-in-one/core/Google/Service/AppState.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === webuser-all-in-one === )
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

webuser-all-in-one/WebUser All in one.php 85% from 13 tests

The main PHP file in "WebUser All in one" ver. 1.2.5 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 ("webuser-all-in-one.php" instead of "WebUser All in one.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 300 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected104,590 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code
PHP9817,63121,639103,878
PO File3177177556
CSS2230120
JavaScript19336

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity105.00
Average method complexity1.04
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1,920
▷ Abstract classes50.26%
▷ Concrete classes1,91599.74%
▷ Final classes00.00%
Methods15,459
▷ Static methods130.08%
▷ Public methods15,38199.50%
▷ Protected methods510.33%
▷ Private methods270.17%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants165
▷ Global constants00.00%
▷ Class constants165100.00%
▷ Public constants165100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo-W.png6.43KB3.29KB▼ 48.95%
img/basic_avatars.png60.82KB17.00KB▼ 72.05%
img/basic_driveplugin.png44.05KB16.22KB▼ 63.17%
img/basic_loginupgrade.png48.68KB15.91KB▼ 67.32%