84% webcraftic-updates-manager

Code Review | Disable updates, Updates manager, Disable automatic updates

WordPress plugin Disable updates, Updates manager, Disable automatic updates scored84%from 54 tests.

About plugin

  • Plugin page: webcraftic-update...
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2017
  • Latest release: Nov 23, 2023
  • Number of updates: 16
  • Update frequency: every 139.1 days
  • Top authors: webcraftic (56.25%)alexkovalevv (50%)

Code review

54 tests

User reviews

22 reviews

Install metrics

6,000+ active /43,585 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
Installer ran successfully

Server metrics [RAM: ▲1.70MB] [CPU: ▲5.97ms] Passed 4 tests

An overview of server-side resources used by Disable updates, Updates manager, Disable automatic updates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.9247.63 ▲6.76
Dashboard /wp-admin5.30 ▲1.9562.48 ▼1.74
Posts /wp-admin/edit.php5.34 ▲1.9865.17 ▲18.51
Add New Post /wp-admin/post-new.php7.88 ▲1.9998.03 ▲0.75
Media Library /wp-admin/upload.php5.21 ▲1.9754.88 ▲18.12
Updates manager /wp-admin/options-general.php?page=updates-wbcr_updates_manager6.13344.78

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 250 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
wbcr_updates_manager_plugin_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
wbcr_updates_manager_plugin_activated

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable updates, Updates manager, Disable automatic updates
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15414.26 ▼0.011.78 ▲0.2243.49 ▼0.48
Dashboard /wp-admin2,306 ▲1255.65 ▲0.0298.39 ▼4.8743.98 ▲1.55
Posts /wp-admin/edit.php2,215 ▲1182.06 ▲0.0343.03 ▲6.6534.66 ▼0.28
Add New Post /wp-admin/post-new.php1,609 ▲6523.51 ▼1.74597.12 ▼12.1431.78 ▼36.59
Media Library /wp-admin/upload.php1,482 ▲854.18 ▼0.0398.22 ▲1.4342.16 ▲1.31
Updates manager /wp-admin/options-general.php?page=updates-wbcr_updates_manager1,5252.3943.0844.85

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(WUPM_PLUGIN_DIR/admin/includes/class-plugin-filters.php): failed to open stream: No such file or directory in wp-content/plugins/webcraftic-updates-manager/admin/boot.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'WUPM_PLUGIN_DIR/admin/includes/class-plugin-filters.php' (include_path='.:/usr/share/php') in wp-content/plugins/webcraftic-updates-manager/admin/boot.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/webcraftic-updates-manager/libs/factory/templates/pages/setup-parts/class-step-custom.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/webcraftic-updates-manager/libs/factory/templates/pages/setup-parts/class-step-form.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Wbcr_FactoryForms469_FontControl' not found in wp-content/plugins/webcraftic-updates-manager/libs/factory/forms/controls/google-font.php:18
    • > PHP Warning
      Use of undefined constant WUPM_PLUGIN_DIR - assumed 'WUPM_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/webcraftic-updates-manager/admin/boot.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'Wbcr_Factory473_Update' not found in wp-content/plugins/webcraftic-updates-manager/migrations/010008.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

webcraftic-updates-manager/webcraftic-updates-manager.php Passed 13 tests

This is the main PHP file of "Disable updates, Updates manager, Disable automatic updates" version 1.1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
Manage all your WordPress updates, automatic updates, logs, and loads more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin20,469 lines of code in 185 files:
LanguageFilesBlank linesComment linesLines of code
PHP1203,3147,61011,757
CSS281662862,745
LESS84111172,000
JSON1001,810
PO File104325361,438
JavaScript17206209717
Markdown1102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity17.31
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces9
Interfaces2
Traits1
Classes102
▷ Abstract classes1716.67%
▷ Concrete classes8583.33%
▷ Final classes00.00%
Methods740
▷ Static methods293.92%
▷ Public methods57277.30%
▷ Protected methods14018.92%
▷ Private methods283.78%
Functions38
▷ Named functions2052.63%
▷ Anonymous functions1847.37%
Constants47
▷ Global constants4085.11%
▷ Class constants714.89%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/factory/templates/pages/templates/impressive/assets/img/5-stars22.png3.51KB0.70KB▼ 79.99%
libs/factory/templates/pages/templates/impressive-lite/assets/img/paypal-donate.png12.44KB4.99KB▼ 59.88%
libs/factory/templates/pages/templates/impressive-lite/assets/img/5-stars22.png3.51KB0.70KB▼ 79.99%
libs/factory/templates/pages/templates/impressive-lite/assets/img/webcraftic-plugin-icon.png1.97KB0.75KB▼ 61.79%
libs/factory/templates/pages/templates/impressive/assets/img/webcraftic-plugin-icon.png1.97KB0.75KB▼ 61.79%