10% webdesign-ugurcu-dhl-manager

Code Review | Webdesign-Ugurcu DHL Manager

WordPress plugin Webdesign-Ugurcu DHL Manager scored 10% from 54 tests.

About plugin

  • Plugin page: webdesign-ugurcu-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 1, 2018
  • Latest release: Feb 4, 2018
  • Number of updates: 16
  • Update frequency: every 0.2 days
  • Top authors: webdesignugurcu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 611 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/webdesign-ugurcu-dhl-manager/includes/class-wu-dhl-activator.php+30
    Non-static method WU_DHL_Activator::jal_install() should not be called statically

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.32ms] Passed 4 tests

Server-side resources used by Webdesign-Ugurcu DHL Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.60 ▲3.35
Dashboard /wp-admin3.38 ▲0.0847.07 ▼4.27
Posts /wp-admin/edit.php3.50 ▲0.1447.87 ▼0.22
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.32 ▲3.36
Media Library /wp-admin/upload.php3.31 ▲0.0836.71 ▲2.43

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: 1 new table, 6 new options
New tables
wp_wu_dhl_labels
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Webdesign-Ugurcu DHL Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲18313.59 ▼0.835.95 ▲3.7934.33 ▼8.35
Dashboard /wp-admin2,234 ▲465.86 ▼0.04162.88 ▲49.1849.93 ▲6.30
Posts /wp-admin/edit.php2,120 ▲311.99 ▼0.0639.17 ▲2.4840.92 ▲5.71
Add New Post /wp-admin/post-new.php1,399 ▼11522.82 ▲5.33519.02 ▼87.57174.25 ▲121.05
Media Library /wp-admin/upload.php1,419 ▲344.23 ▼0.03102.71 ▼2.7841.64 ▼2.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/webdesign-ugurcu-dhl-manager/admin/partials/wu-dhl-meta-box-side.php:7
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/webdesign-ugurcu-dhl-manager/admin/partials/wu-dhl-meta-box-side.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webdesign-ugurcu-dhl-manager/admin/partials/wu-dhl-index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/webdesign-ugurcu-dhl-manager/includes/class-wu-dhl-buisness-shipment.php:8
    • > PHP Notice
      Undefined variable: order in wp-content/plugins/webdesign-ugurcu-dhl-manager/admin/partials/wu-dhl-meta-box-side.php on line 6
    • > PHP Notice
      Undefined variable: wu_dhl_sendungsnummer in wp-content/plugins/webdesign-ugurcu-dhl-manager/admin/partials/wu-dhl-meta-box-side.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed: The official readme.txt might help

webdesign-ugurcu-dhl-manager/wu-dhl.php 77% from 13 tests

"Webdesign-Ugurcu DHL Manager" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/language")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webdesign-ugurcu-dhl-manager.php" instead of "wu-dhl.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
Good job! No executable or dangerous file extensions detected4,870 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
XSD26453,760
PHP14144646649
XML104338
PO File24543114
CSS2289

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods3681.82%
▷ Protected methods00.00%
▷ Private methods818.18%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.03MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/menu_logo.png0.89KB0.89KB0.11%
admin/images/pdf_symbol.png23.49KB25.01KB0.00%
admin/images/thumb.png4.69KB2.79KB▼ 40.41%